diff options
-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 |