From 6892939b8c41582609711d6f6e73a03c421cac41 Mon Sep 17 00:00:00 2001 From: Daniel McGregor Date: Tue, 14 Jan 2020 11:11:47 -0600 Subject: Make llvm CRT components optional LLVM 9+ provides the crt startup components crtbegin.o and crtend.o, enabled by default. Make using these with the clang runtime optional. Signed-off-by: Daniel McGregor --- recipes-devtools/clang/compiler-rt_git.bb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'recipes-devtools') diff --git a/recipes-devtools/clang/compiler-rt_git.bb b/recipes-devtools/clang/compiler-rt_git.bb index 6543cda..4fd29b4 100644 --- a/recipes-devtools/clang/compiler-rt_git.bb +++ b/recipes-devtools/clang/compiler-rt_git.bb @@ -22,6 +22,9 @@ INHIBIT_DEFAULT_DEPS = "1" DEPENDS += "ninja-native clang-cross-${TARGET_ARCH} virtual/${MLPREFIX}libc virtual/${TARGET_PREFIX}compilerlibs virtual/crypt" DEPENDS_append_class-nativesdk = " clang-native" +PACKAGECONFIG ??= "" +PACKAGECONFIG[crt] = "-DCOMPILER_RT_BUILD_CRT:BOOL=ON,-DCOMPILER_RT_BUILD_CRT:BOOL=OFF" + HF = "${@ bb.utils.contains('TUNE_CCARGS_MFLOAT', 'hard', 'hf', '', d)}" HF[vardepvalue] = "${HF}" -- cgit v1.2.3-54-g00ecf