diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-05-26 11:33:28 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-09-08 09:08:54 -0700 |
commit | dc1fced67f67223682ebcc821ae537c05e7b059a (patch) | |
tree | d48a45fe547f229f6e8936fa75f17a01cb3b5ab7 | |
parent | 9ce4b75cc534dd77b41f3d617c4fab7bdf45666f (diff) | |
download | meta-clang-dc1fced67f67223682ebcc821ae537c05e7b059a.tar.gz |
compiler-rt: Use gcc runtime to bootstrap
while compiler-rt may not use any of these libraries, but the cmake
environment pokes for working compiler, linker and other tools, this
ensures that it can build when RUNTIME = "llvm" and also RUNTIME =
"gnu"
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 7f431875e4edc2a11a9881714e4845efeee54f77)
Conflicts:
- recipes-devtools/clang/compiler-rt_git.bb: Commit
93552c79eed5daa44a24bf4b7a063a2ade739e97 had already backported parts of
this commit.
-rw-r--r-- | recipes-devtools/clang/compiler-rt_git.bb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/recipes-devtools/clang/compiler-rt_git.bb b/recipes-devtools/clang/compiler-rt_git.bb index b61ede0..49566e7 100644 --- a/recipes-devtools/clang/compiler-rt_git.bb +++ b/recipes-devtools/clang/compiler-rt_git.bb | |||
@@ -8,22 +8,26 @@ SECTION = "base" | |||
8 | require clang.inc | 8 | require clang.inc |
9 | require common-source.inc | 9 | require common-source.inc |
10 | 10 | ||
11 | inherit cmake pkgconfig python3native | 11 | inherit cmake cmake-native pkgconfig python3native |
12 | 12 | ||
13 | 13 | ||
14 | LIC_FILES_CHKSUM = "file://compiler-rt/LICENSE.TXT;md5=d846d1d65baf322d4c485d6ee54e877a" | 14 | LIC_FILES_CHKSUM = "file://compiler-rt/LICENSE.TXT;md5=d846d1d65baf322d4c485d6ee54e877a" |
15 | 15 | ||
16 | LIBCPLUSPLUS = "" | 16 | LIBCPLUSPLUS = "" |
17 | COMPILER_RT = "" | 17 | COMPILER_RT = "" |
18 | |||
18 | TUNE_CCARGS_remove = "-no-integrated-as" | 19 | TUNE_CCARGS_remove = "-no-integrated-as" |
19 | 20 | ||
20 | INHIBIT_DEFAULT_DEPS = "1" | 21 | INHIBIT_DEFAULT_DEPS = "1" |
21 | 22 | ||
22 | DEPENDS += "ninja-native" | 23 | DEPENDS += "ninja-native libgcc" |
23 | DEPENDS_append_class-target = " clang-cross-${TARGET_ARCH} virtual/${MLPREFIX}libc virtual/${TARGET_PREFIX}compilerlibs" | 24 | DEPENDS_append_class-target = " clang-cross-${TARGET_ARCH} virtual/${MLPREFIX}libc gcc-runtime" |
24 | DEPENDS_append_class-nativesdk = " clang-native" | 25 | DEPENDS_append_class-nativesdk = " clang-native" |
25 | DEPENDS_append_class-native = " clang-native" | 26 | DEPENDS_append_class-native = " clang-native" |
26 | 27 | ||
28 | CXXFLAGS += "-stdlib=libstdc++" | ||
29 | LDFLAGS += "-unwindlib=libgcc -rtlib=libgcc -stdlib=libstdc++" | ||
30 | |||
27 | PACKAGECONFIG ??= "" | 31 | PACKAGECONFIG ??= "" |
28 | PACKAGECONFIG[crt] = "-DCOMPILER_RT_BUILD_CRT:BOOL=ON,-DCOMPILER_RT_BUILD_CRT:BOOL=OFF" | 32 | PACKAGECONFIG[crt] = "-DCOMPILER_RT_BUILD_CRT:BOOL=ON,-DCOMPILER_RT_BUILD_CRT:BOOL=OFF" |
29 | 33 | ||