llvm12: apply workaround to lld cmake file (#6591)

related to issue #3749
This commit is contained in:
augiedoggie
2022-02-05 04:59:42 -07:00
committed by GitHub
parent 226c31f3d0
commit bd2e244f33

View File

@@ -31,7 +31,7 @@ other than the ones listed above.
HOMEPAGE="https://www.llvm.org/"
COPYRIGHT="2003-2019 University of Illinois at Urbana-Champaign"
LICENSE="Apache v2 with LLVM Exception"
REVISION="1"
REVISION="2"
SOURCE_URI="https://github.com/llvm/llvm-project/releases/download/llvmorg-$portVersion/llvm-$portVersion.src.tar.xz"
CHECKSUM_SHA256="7d9a8405f557cefc5a21bf5672af73903b64749d9bc3a50322239f56f34ffddf"
SOURCE_DIR="llvm-$portVersion.src"
@@ -594,6 +594,7 @@ INSTALL()
# adjust cmake library paths because prepareInstalledDevelLibs moved them
sed -i 's,\${_IMPORT_PREFIX}/lib/,\${_IMPORT_PREFIX}/develop/lib/,' \
$libDir/cmake/clang/ClangTargets-release.cmake \
$libDir/cmake/lld/LLDTargets-release.cmake \
$libDir/cmake/llvm/LLVMExports-release.cmake
mv $prefix/include/* $includeDir/