File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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!
You can’t perform that action at this time.
0 commit comments