summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-05-26 11:33:28 -0700
committerKhem Raj <raj.khem@gmail.com>2023-09-08 09:08:54 -0700
commitdc1fced67f67223682ebcc821ae537c05e7b059a (patch)
treed48a45fe547f229f6e8936fa75f17a01cb3b5ab7
parent9ce4b75cc534dd77b41f3d617c4fab7bdf45666f (diff)
downloadmeta-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.bb10
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"
8require clang.inc 8require clang.inc
9require common-source.inc 9require common-source.inc
10 10
11inherit cmake pkgconfig python3native 11inherit cmake cmake-native pkgconfig python3native
12 12
13 13
14LIC_FILES_CHKSUM = "file://compiler-rt/LICENSE.TXT;md5=d846d1d65baf322d4c485d6ee54e877a" 14LIC_FILES_CHKSUM = "file://compiler-rt/LICENSE.TXT;md5=d846d1d65baf322d4c485d6ee54e877a"
15 15
16LIBCPLUSPLUS = "" 16LIBCPLUSPLUS = ""
17COMPILER_RT = "" 17COMPILER_RT = ""
18
18TUNE_CCARGS_remove = "-no-integrated-as" 19TUNE_CCARGS_remove = "-no-integrated-as"
19 20
20INHIBIT_DEFAULT_DEPS = "1" 21INHIBIT_DEFAULT_DEPS = "1"
21 22
22DEPENDS += "ninja-native" 23DEPENDS += "ninja-native libgcc"
23DEPENDS_append_class-target = " clang-cross-${TARGET_ARCH} virtual/${MLPREFIX}libc virtual/${TARGET_PREFIX}compilerlibs" 24DEPENDS_append_class-target = " clang-cross-${TARGET_ARCH} virtual/${MLPREFIX}libc gcc-runtime"
24DEPENDS_append_class-nativesdk = " clang-native" 25DEPENDS_append_class-nativesdk = " clang-native"
25DEPENDS_append_class-native = " clang-native" 26DEPENDS_append_class-native = " clang-native"
26 27
28CXXFLAGS += "-stdlib=libstdc++"
29LDFLAGS += "-unwindlib=libgcc -rtlib=libgcc -stdlib=libstdc++"
30
27PACKAGECONFIG ??= "" 31PACKAGECONFIG ??= ""
28PACKAGECONFIG[crt] = "-DCOMPILER_RT_BUILD_CRT:BOOL=ON,-DCOMPILER_RT_BUILD_CRT:BOOL=OFF" 32PACKAGECONFIG[crt] = "-DCOMPILER_RT_BUILD_CRT:BOOL=ON,-DCOMPILER_RT_BUILD_CRT:BOOL=OFF"
29 33