From 410caea6379431d07939e0acabdc414bbdb86192 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 30 Jul 2019 23:11:44 -0700 Subject: README: Add new info about selecting unwind library Fix the runtime documentation which was reverse Signed-off-by: Khem Raj --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f5e5c26..72849f0 100644 --- a/README.md +++ b/README.md @@ -55,16 +55,16 @@ You can select libstdc++ per package too by writing bbappends for them containin LIBCPLUSPLUS_toolchain-clang_pn- = "" ``` -# Default Compiler Runtime ( Compiler-rt + libcxx ) +# Default Compiler Runtime ( Compiler-rt + libc++ ) -By default, clang build from meta-clang uses gcc runtime ( libgcc + libstdc++ ) out of box -However, it is possible to switch to using Clang runtime as default, In order to do that +By default, clang build from meta-clang uses clang runtime ( compiler-rt + libc++ + libunwind ) out of box +However, it is possible to switch to using gcc runtime as default, In order to do that following settings are needed in site configurations e.g. in local.conf ```python TOOLCHAIN ?= "clang" -TARGET_CXXFLAGS_append_toolchain-clang = " --stdlib=libc++" -TUNE_CCARGS_append_toolchain-clang = " --rtlib=compiler-rt --stdlib=libc++" +TARGET_CXXFLAGS_remoce_toolchain-clang = " --stdlib=libc++" +TUNE_CCARGS_remove_toolchain-clang = " --rtlib=compiler-rt --unwindlib=libunwind --stdlib=libc++" ``` # Building -- cgit v1.2.3-54-g00ecf