Skip to content

Commit 88cf9f8

Browse files
authored
Merge pull request #289 from jkloetzke/fix-llvm-config
Fix llvm config
2 parents 23358c4 + b52b79f commit 88cf9f8

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

recipes/devel/llvm.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ multiPackage:
5858
buildScript: |
5959
cmakeBuild $1/llvm \
6060
-DCMAKE_BUILD_TYPE=Release \
61+
-DLLVM_ENABLE_RTTI=ON \
6162
-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" \
6263
-DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS}" \
6364
-DLLVM_INCLUDE_BENCHMARKS=OFF \
@@ -282,6 +283,13 @@ multiPackage:
282283
/usr/ /usr/lib/ /usr/lib/{clang,llvm}/"***" \
283284
/usr/bin/ /usr/bin/llvm-config
284285
286+
# If we're cross-compiling, we need to take
287+
# llvm-config from the host-tools package so that
288+
# it can be executed at build time.
289+
if [[ ${BOB_TOOL_PATHS[clang-host]:+true} ]] ; then
290+
cp ${BOB_TOOL_PATHS[clang-host]}/llvm-config usr/bin/
291+
fi
292+
285293
# Add some wrapper scripts for all executables,
286294
# except llvm-config. The CMake exported targets
287295
# expect them relative to them and check this!

0 commit comments

Comments
 (0)