File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
meta-chromium/recipes-browser/chromium Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,20 @@ TOOLCHAIN:class-native = "clang"
24
24
# https://github.com/kraj/meta-clang/issues/449).
25
25
RUNTIME = "llvm"
26
26
27
+ # meta-clang uses RUNTIME variable to add build dependencies on libcxx/compiler-rt
28
+ # but does not add compiler options to commandline. It expects compiler's own
29
+ # defaults to be used and compiler's buildtime defaults are chosen based on
30
+ # global RUNTIME variable setting when building clang compiler, which defaults to 'gnu'.
31
+ # For chromium libc++ is expected to be used therefore ensure that
32
+ # right build flags are set for chromium irrespective of
33
+ # distro defaults (which could be 'gnu' or 'llvm').
34
+ # This also ensures that it does not rely too much on meta-clang's defaults.
35
+ LIBCPLUSPLUS = "-stdlib=libc++"
36
+
37
+ # LIBCPLUSPLUS is included in CXXFLAGS and LDFLAGS, but chromium doesn't respect it
38
+ # add it to TUNE_CCARGS as well to include it in CC/CXX variables which are respected.
39
+ TUNE_CCARGS += "${LIBCPLUSPLUS} "
40
+
27
41
inherit mime -xdg pythonnative
28
42
DEPENDS += "python-setuptools-native"
29
43
You can’t perform that action at this time.
0 commit comments