diff options
| author | Khem Raj <raj.khem@gmail.com> | 2019-02-23 15:46:49 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2019-02-23 23:59:49 -0800 |
| commit | d94094bb5e846d8a7cb81b7cacb415ca275066a7 (patch) | |
| tree | 95fcc3f194b6bbaddb18513ce16cc643adf13e1e /README.md | |
| parent | 1a131a38d29193ea7b5eed2f50c218fddc6055a5 (diff) | |
| download | meta-clang-d94094bb5e846d8a7cb81b7cacb415ca275066a7.tar.gz | |
README: Document COMPILER_RT and LIBCPLUSPLUS
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 12 |
1 files changed, 5 insertions, 7 deletions
| @@ -41,20 +41,18 @@ TOOLCHAIN = "clang" | |||
| 41 | 41 | ||
| 42 | # Default C++ Standard Library Switch | 42 | # Default C++ Standard Library Switch |
| 43 | 43 | ||
| 44 | Note that by default libstdc++ will remain the default C++ standard library, however if you wish | 44 | Note that by default clang libc++ is default C++ standard library, however if you wish |
| 45 | libc++ to be the default one then set | 45 | GNU libstdc++ to be the default one then set |
| 46 | 46 | ||
| 47 | ```python | 47 | ```python |
| 48 | TUNE_CCARGS_append_toolchain-clang = " --stdlib=libc++" | 48 | LIBCPLUSPLUS = "" |
| 49 | TARGET_CXXFLAGS_append_toolchain-clang = " --stdlib=libc++" | ||
| 50 | ``` | 49 | ``` |
| 51 | 50 | ||
| 52 | in local.conf. | 51 | in local.conf. |
| 53 | You can select libc++ per package too by writing bbappends for them containing | 52 | You can select libstdc++ per package too by writing bbappends for them containing |
| 54 | 53 | ||
| 55 | ```python | 54 | ```python |
| 56 | TUNE_CCARGS_append_toolchain-clang_pn-<recipe> = " --stdlib=libc++" | 55 | LIBCPLUSPLUS_toolchain-clang_pn-<recipe> = "" |
| 57 | TARGET_CXXFLAGS_append_toolchain-clang_pn-<recipe> = " --stdlib=libc++" | ||
| 58 | ``` | 56 | ``` |
| 59 | 57 | ||
| 60 | # Default Compiler Runtime ( Compiler-rt + libcxx ) | 58 | # Default Compiler Runtime ( Compiler-rt + libcxx ) |
