|
Lines 419-430
Link Here
|
| 419 |
|
428 |
|
| 420 |
if tc-is-cross-compiler; then |
429 |
if tc-is-cross-compiler; then |
| 421 |
local tblgen="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}/bin/llvm-tblgen" |
|
|
| 422 |
[[ -x "${tblgen}" ]] \ |
| 423 |
|| die "${tblgen} not found or usable" |
| 424 |
mycmakeargs+=( |
430 |
mycmakeargs+=( |
| 425 |
-DCMAKE_CROSSCOMPILING=ON |
431 |
-DCMAKE_CROSSCOMPILING=ON |
| 426 |
-DLLVM_TABLEGEN="${tblgen}" |
|
|
| 427 |
) |
432 |
) |
| 428 |
fi |
433 |
fi |
|
|
434 |
local HOST_BUILD_DIR=${WORKDIR}/${PN}_build-"$( multilib_get_enabled_abi_pairs | tail -n 1 )" |
| 435 |
mycmakeargs+=( |
| 436 |
-DLLVM_TABLEGEN="${HOST_BUILD_DIR}/bin/llvm-tblgen" |
| 437 |
) |
| 429 |
|
438 |
|
| 430 |
# workaround BMI bug in gcc-7 (fixed in 7.4) |
439 |
# workaround BMI bug in gcc-7 (fixed in 7.4) |
|
Lines 453-456
Link Here
|
| 453 |
|
465 |
|
| 454 |
multilib_src_compile() { |
466 |
multilib_src_compile() { |
|
|
467 |
if ! multilib_is_native_abi; then |
| 468 |
# Make sure native llvm-tblgen has been built |
| 469 |
local HOST_BUILD_DIR=${WORKDIR}/${PN}_build-"$( multilib_get_enabled_abi_pairs | tail -n 1 )" |
| 470 |
cd ${HOST_BUILD_DIR} && ninja -v llvm-tblgen && cd - |
| 471 |
fi |
| 455 |
cmake_build distribution |
472 |
cmake_build distribution |
| 456 |
|
473 |
|