Skip to content

Commit 967f28f

Browse files
krajotavio
authored andcommitted
gn-runtime: Fix build when using llvm runtime
Signed-off-by: Khem Raj <[email protected]>
1 parent c09be48 commit 967f28f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

meta-chromium/recipes-browser/chromium/gn-native_92.0.4515.107.bb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ BUILD_LD = "${CXX}"
2828
BUILD_AR = "llvm-ar"
2929

3030
DEPENDS = "clang-native ninja-native"
31+
DEPENDS_append_runtime-llvm = " compiler-rt-native libcxx-native"
32+
# Use libcxx headers for native parts
33+
CXXFLAGS_append_runtime-llvm = " -isysroot=${STAGING_DIR_NATIVE} -stdlib=libc++"
34+
# Use libgcc for native parts
35+
LDFLAGS_append_runtime-llvm = " -rtlib=libgcc -unwindlib=libgcc -stdlib=libc++ -lc++abi -rpath ${STAGING_LIBDIR_NATIVE}"
3136

3237
do_configure[noexec] = "1"
3338

0 commit comments

Comments
 (0)