Skip to content

Commit

Permalink
Make llvm CRT components optional
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dankm authored and kraj committed Jan 20, 2020
1 parent c946dfc commit 6892939
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions recipes-devtools/clang/compiler-rt_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down

0 comments on commit 6892939

Please sign in to comment.