diff options
| author | Khem Raj <raj.khem@gmail.com> | 2019-02-23 13:21:36 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2019-02-23 23:59:49 -0800 |
| commit | c37ae8a2d9fa6b3f8fa51b6e1558ece43335691a (patch) | |
| tree | e45d47cfc040aad8c723f318cd9a0709d08b9f21 | |
| parent | f6a32267065170803d22e636ecd05c2809a2b5dc (diff) | |
| download | meta-clang-c37ae8a2d9fa6b3f8fa51b6e1558ece43335691a.tar.gz | |
README: Update comments about using libc++ and compiler-rt
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | README.md | 13 |
1 files changed, 6 insertions, 7 deletions
| @@ -45,16 +45,16 @@ Note that by default libstdc++ will remain the default C++ standard library, how | |||
| 45 | libc++ to be the default one then set | 45 | libc++ to be the default one then set |
| 46 | 46 | ||
| 47 | ```python | 47 | ```python |
| 48 | CXX_append_toolchain-clang = " -stdlib=libc++ " | 48 | TUNE_CCARGS_append_toolchain-clang = " --stdlib=libc++" |
| 49 | TARGET_CXXFLAGS_append_toolchain-clang = " -stdlib=libc++ " | 49 | TARGET_CXXFLAGS_append_toolchain-clang = " --stdlib=libc++" |
| 50 | ``` | 50 | ``` |
| 51 | 51 | ||
| 52 | in local.conf. | 52 | in local.conf. |
| 53 | You can select libc++ per package too by writing bbappends for them containing | 53 | You can select libc++ per package too by writing bbappends for them containing |
| 54 | 54 | ||
| 55 | ```python | 55 | ```python |
| 56 | CXX_append_toolchain-clang_pn-<recipe> = " -stdlib=libc++ " | 56 | TUNE_CCARGS_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 ) | 60 | # Default Compiler Runtime ( Compiler-rt + libcxx ) |
| @@ -65,9 +65,8 @@ following settings are needed in site configurations e.g. in local.conf | |||
| 65 | 65 | ||
| 66 | ```python | 66 | ```python |
| 67 | TOOLCHAIN ?= "clang" | 67 | TOOLCHAIN ?= "clang" |
| 68 | CXX_append_toolchain-clang = " -stdlib=libc++ " | 68 | TARGET_CXXFLAGS_append_toolchain-clang = " --stdlib=libc++" |
| 69 | TARGET_CXXFLAGS_append_toolchain-clang = " -stdlib=libc++ " | 69 | TUNE_CCARGS_append_toolchain-clang = " --rtlib=compiler-rt --stdlib=libc++" |
| 70 | TUNE_CCARGS_append_toolchain-clang = " --rtlib=compiler-rt" | ||
| 71 | ``` | 70 | ``` |
| 72 | 71 | ||
| 73 | # Building | 72 | # Building |
