summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-02-23 15:46:49 -0800
committerKhem Raj <raj.khem@gmail.com>2019-02-23 23:59:49 -0800
commitd94094bb5e846d8a7cb81b7cacb415ca275066a7 (patch)
tree95fcc3f194b6bbaddb18513ce16cc643adf13e1e
parent1a131a38d29193ea7b5eed2f50c218fddc6055a5 (diff)
downloadmeta-clang-d94094bb5e846d8a7cb81b7cacb415ca275066a7.tar.gz
README: Document COMPILER_RT and LIBCPLUSPLUS
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--README.md12
1 files changed, 5 insertions, 7 deletions
diff --git a/README.md b/README.md
index 0e72259..f5e5c26 100644
--- a/README.md
+++ b/README.md
@@ -41,20 +41,18 @@ TOOLCHAIN = "clang"
41 41
42# Default C++ Standard Library Switch 42# Default C++ Standard Library Switch
43 43
44Note that by default libstdc++ will remain the default C++ standard library, however if you wish 44Note that by default clang libc++ is default C++ standard library, however if you wish
45libc++ to be the default one then set 45GNU libstdc++ to be the default one then set
46 46
47```python 47```python
48TUNE_CCARGS_append_toolchain-clang = " --stdlib=libc++" 48LIBCPLUSPLUS = ""
49TARGET_CXXFLAGS_append_toolchain-clang = " --stdlib=libc++"
50``` 49```
51 50
52in local.conf. 51in local.conf.
53You can select libc++ per package too by writing bbappends for them containing 52You can select libstdc++ per package too by writing bbappends for them containing
54 53
55```python 54```python
56TUNE_CCARGS_append_toolchain-clang_pn-<recipe> = " --stdlib=libc++" 55LIBCPLUSPLUS_toolchain-clang_pn-<recipe> = ""
57TARGET_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 )