diff options
-rw-r--r-- | README.md | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -57,12 +57,25 @@ CXX_append_toolchain-clang_pn-<recipe> = " -stdlib=libc++ " | |||
57 | TARGET_CXXFLAGS_append_toolchain-clang_pn-<recipe> = " -stdlib=libc++ " | 57 | TARGET_CXXFLAGS_append_toolchain-clang_pn-<recipe> = " -stdlib=libc++ " |
58 | ``` | 58 | ``` |
59 | 59 | ||
60 | # Default Compiler Runtime ( Compiler-rt + libcxx ) | ||
61 | |||
62 | By default, clang build from meta-clang uses gcc runtime ( libgcc + libstdc++ ) out of box | ||
63 | However, it is possible to switch to using Clang runtime as default, In order to do that | ||
64 | following settings are needed in site configurations e.g. in local.conf | ||
65 | |||
66 | ```python | ||
67 | TOOLCHAIN ?= "clang" | ||
68 | CXX_append_toolchain-clang = " -stdlib=libc++ " | ||
69 | TARGET_CXXFLAGS_append_toolchain-clang = " -stdlib=libc++ " | ||
70 | TUNE_CCARGS_append_toolchain-clang = " --rtlib=compiler-rt" | ||
71 | ``` | ||
72 | |||
60 | # Building | 73 | # Building |
61 | 74 | ||
62 | Below we build for qemuarm machine as an example | 75 | Below we build for qemuarm machine as an example |
63 | 76 | ||
64 | ```shell | 77 | ```shell |
65 | $ MACHINE=qemux86 bitbake core-image-minimal | 78 | $ MACHINE=qemux86 bitbake core-image-base |
66 | ``` | 79 | ``` |
67 | # Running | 80 | # Running |
68 | 81 | ||