|
Lines 323-333
Link Here
|
| 323 |
|
334 |
|
| 324 |
if tc-is-cross-compiler; then |
335 |
if tc-is-cross-compiler; then |
| 325 |
[[ -x "/usr/bin/clang-tblgen" ]] \ |
|
|
| 326 |
|| die "/usr/bin/clang-tblgen not found or usable" |
| 327 |
mycmakeargs+=( |
336 |
mycmakeargs+=( |
| 328 |
-DCMAKE_CROSSCOMPILING=ON |
337 |
-DCMAKE_CROSSCOMPILING=ON |
| 329 |
-DCLANG_TABLEGEN=/usr/bin/clang-tblgen |
|
|
| 330 |
) |
338 |
) |
| 331 |
fi |
339 |
fi |
|
|
340 |
local HOST_BUILD_DIR=${WORKDIR}/x/y/clang-"$( multilib_get_enabled_abi_pairs | tail -n 1 )" |
| 341 |
mycmakeargs+=( |
| 342 |
-DCLANG_TABLEGEN="${HOST_BUILD_DIR}/bin/clang-tblgen" |
| 343 |
) |
| 332 |
|
344 |
|
| 333 |
# LLVM can have very high memory consumption while linking, |
345 |
# LLVM can have very high memory consumption while linking, |
|
Lines 343-346
Link Here
|
| 343 |
|
357 |
|
| 344 |
multilib_src_compile() { |
358 |
multilib_src_compile() { |
|
|
359 |
if ! multilib_is_native_abi; then |
| 360 |
# Make sure native clang-tblgen has been built |
| 361 |
local HOST_BUILD_DIR=${WORKDIR}/x/y/clang-"$( multilib_get_enabled_abi_pairs | tail -n 1 )" |
| 362 |
cd ${HOST_BUILD_DIR} && ninja -v clang-tblgen && cd - |
| 363 |
fi |
| 345 |
cmake_build distribution |
364 |
cmake_build distribution |
| 346 |
|
365 |
|