diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-05-18 22:27:41 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-05-19 23:58:12 -0700 |
commit | cda2283e4cf3c90ea42b43dbc3a2268be6655670 (patch) | |
tree | aa19c76565cef75c48270c4a6832c98d1f91dcab /README.md | |
parent | d797409435d3b0e9f2859992439989ff1d81e66d (diff) | |
download | meta-clang-cda2283e4cf3c90ea42b43dbc3a2268be6655670.tar.gz |
Replace --stdlibc=libc++ with -stdlibc=libc++
This ensures that it matches with CMake's understanding of this option
and when its removed then it silently removes -stdlibc=libc++ but leaves
the spurious '-' in the commandline which confuses the compiler as it
them expects input from stdin
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -76,14 +76,14 @@ if needed to by modifying `LIBCPLUSPLUS` variable, usually defaults used by `RUN | |||
76 | best fit. e.g. below we select LLVM C++ as default C++ runtime. | 76 | best fit. e.g. below we select LLVM C++ as default C++ runtime. |
77 | 77 | ||
78 | ```shell | 78 | ```shell |
79 | LIBCPLUSPLUS = "--stdlib=libc++" | 79 | LIBCPLUSPLUS = "-stdlib=libc++" |
80 | ``` | 80 | ``` |
81 | 81 | ||
82 | in `local.conf`. | 82 | in `local.conf`. |
83 | You can select libstdc++ per package too by writing bbappends for them containing | 83 | You can select libstdc++ per package too by writing bbappends for them containing |
84 | 84 | ||
85 | ```shell | 85 | ```shell |
86 | LIBCPLUSPLUS_toolchain-clang_pn-<recipe> = "--stdlibc=libc++" | 86 | LIBCPLUSPLUS_toolchain-clang_pn-<recipe> = "-stdlibc=libc++" |
87 | ``` | 87 | ``` |
88 | Defaults are chosen to be GNU for maximum compatibility with existing GNU systems. Its always | 88 | Defaults are chosen to be GNU for maximum compatibility with existing GNU systems. Its always |
89 | good to use single runtime on a system, mixing runtimes can cause complications during | 89 | good to use single runtime on a system, mixing runtimes can cause complications during |