diff options
| author | Eric Sun <ericsun2@cisco.com> | 2024-07-29 16:58:49 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-07-29 21:03:03 -0700 |
| commit | 79d26d1f33fe3a70cf8a24a74a93771edd18b4f0 (patch) | |
| tree | 32bda642bf6292aa5e2710ce6c648d98a37c6070 | |
| parent | f53a67a5ab58cc2c719df443a50cc7bdb4b87d35 (diff) | |
| download | meta-clang-79d26d1f33fe3a70cf8a24a74a93771edd18b4f0.tar.gz | |
compiler-rt-sanitizers: Fix native build tooling paths
Native builds of compiler-rt-sanitizers fail because llvm-ranlib,
llvm-ar, and llvm-nm are not found where the recipe specifies that
they'll be. Other recipes (in particular: compiler-rt) only specify the
locations of those tools for target and nativesdk builds, and they build
fine. This commit implements the same thing for compiler-rt-sanitizers,
fixing native builds.
Signed-off-by: Eric Sun <ericsun2@cisco.com>
| -rw-r--r-- | recipes-devtools/clang/compiler-rt-sanitizers_git.bb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/recipes-devtools/clang/compiler-rt-sanitizers_git.bb b/recipes-devtools/clang/compiler-rt-sanitizers_git.bb index 7abdb49..be01822 100644 --- a/recipes-devtools/clang/compiler-rt-sanitizers_git.bb +++ b/recipes-devtools/clang/compiler-rt-sanitizers_git.bb | |||
| @@ -49,18 +49,21 @@ EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=RelWithDebInfo \ | |||
| 49 | -DCOMPILER_RT_BUILD_PROFILE=ON \ | 49 | -DCOMPILER_RT_BUILD_PROFILE=ON \ |
| 50 | -DCOMPILER_RT_BUILD_MEMPROF=ON \ | 50 | -DCOMPILER_RT_BUILD_MEMPROF=ON \ |
| 51 | -DLLVM_ENABLE_PROJECTS='compiler-rt' \ | 51 | -DLLVM_ENABLE_PROJECTS='compiler-rt' \ |
| 52 | -DCMAKE_RANLIB=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}llvm-ranlib \ | ||
| 53 | -DCMAKE_AR=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}llvm-ar \ | ||
| 54 | -DCMAKE_NM=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}llvm-nm \ | ||
| 55 | -DLLVM_LIBDIR_SUFFIX=${LLVM_LIBDIR_SUFFIX} \ | 52 | -DLLVM_LIBDIR_SUFFIX=${LLVM_LIBDIR_SUFFIX} \ |
| 56 | " | 53 | " |
| 57 | 54 | ||
| 58 | EXTRA_OECMAKE:append:class-nativesdk = "\ | 55 | EXTRA_OECMAKE:append:class-nativesdk = "\ |
| 56 | -DCMAKE_RANLIB=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}llvm-ranlib \ | ||
| 57 | -DCMAKE_AR=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}llvm-ar \ | ||
| 58 | -DCMAKE_NM=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}llvm-nm \ | ||
| 59 | -DLLVM_TABLEGEN=${STAGING_BINDIR_NATIVE}/llvm-tblgen \ | 59 | -DLLVM_TABLEGEN=${STAGING_BINDIR_NATIVE}/llvm-tblgen \ |
| 60 | -DCLANG_TABLEGEN=${STAGING_BINDIR_NATIVE}/clang-tblgen \ | 60 | -DCLANG_TABLEGEN=${STAGING_BINDIR_NATIVE}/clang-tblgen \ |
| 61 | " | 61 | " |
| 62 | 62 | ||
| 63 | EXTRA_OECMAKE:append:class-target = "\ | 63 | EXTRA_OECMAKE:append:class-target = "\ |
| 64 | -DCMAKE_RANLIB=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}llvm-ranlib \ | ||
| 65 | -DCMAKE_AR=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}llvm-ar \ | ||
| 66 | -DCMAKE_NM=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}llvm-nm \ | ||
| 64 | -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ | 67 | -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ |
| 65 | " | 68 | " |
| 66 | 69 | ||
