diff options
| author | Khem Raj <raj.khem@gmail.com> | 2019-07-30 23:11:44 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2019-08-12 22:00:22 -0700 |
| commit | 410caea6379431d07939e0acabdc414bbdb86192 (patch) | |
| tree | bce58656f126114d3372fb916c48413723ca0e02 /README.md | |
| parent | 2fa4342ab4cb20872eb97d2b844e0367b1fad90d (diff) | |
| download | meta-clang-410caea6379431d07939e0acabdc414bbdb86192.tar.gz | |
README: Add new info about selecting unwind library
Fix the runtime documentation which was reverse
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -55,16 +55,16 @@ You can select libstdc++ per package too by writing bbappends for them containin | |||
| 55 | LIBCPLUSPLUS_toolchain-clang_pn-<recipe> = "" | 55 | LIBCPLUSPLUS_toolchain-clang_pn-<recipe> = "" |
| 56 | ``` | 56 | ``` |
| 57 | 57 | ||
| 58 | # Default Compiler Runtime ( Compiler-rt + libcxx ) | 58 | # Default Compiler Runtime ( Compiler-rt + libc++ ) |
| 59 | 59 | ||
| 60 | By default, clang build from meta-clang uses gcc runtime ( libgcc + libstdc++ ) out of box | 60 | By default, clang build from meta-clang uses clang runtime ( compiler-rt + libc++ + libunwind ) out of box |
| 61 | However, it is possible to switch to using Clang runtime as default, In order to do that | 61 | However, it is possible to switch to using gcc runtime as default, In order to do that |
| 62 | following settings are needed in site configurations e.g. in local.conf | 62 | following settings are needed in site configurations e.g. in local.conf |
| 63 | 63 | ||
| 64 | ```python | 64 | ```python |
| 65 | TOOLCHAIN ?= "clang" | 65 | TOOLCHAIN ?= "clang" |
| 66 | TARGET_CXXFLAGS_append_toolchain-clang = " --stdlib=libc++" | 66 | TARGET_CXXFLAGS_remoce_toolchain-clang = " --stdlib=libc++" |
| 67 | TUNE_CCARGS_append_toolchain-clang = " --rtlib=compiler-rt --stdlib=libc++" | 67 | TUNE_CCARGS_remove_toolchain-clang = " --rtlib=compiler-rt --unwindlib=libunwind --stdlib=libc++" |
| 68 | ``` | 68 | ``` |
| 69 | 69 | ||
| 70 | # Building | 70 | # Building |
