summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-10-23 17:20:24 -0700
committerKhem Raj <raj.khem@gmail.com>2023-10-25 10:20:08 -0700
commit41b7f5296d1176160712d79730d3b5ce0c58d1da (patch)
tree1c21380d428f5a7dd175431136159d54435c16e2 /README.md
parent4c6512205b11140ed381d9fd1b7e0dcfb587c023 (diff)
downloadmeta-clang-41b7f5296d1176160712d79730d3b5ce0c58d1da.tar.gz
meta-clang: Replace RUNTIME with TC_CXX_RUNTIME
TC_CXX_RUNTIME is now defined in OE-core Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index 3ec2313..0bc7cfb 100644
--- a/README.md
+++ b/README.md
@@ -67,17 +67,17 @@ PROVIDES:pn-nativesdk-clang = "nativesdk-llvm"
67``` 67```
68# Default Compiler Runtime 68# Default Compiler Runtime
69 69
70Default is to use GNU runtime `RUNTIME = "gnu"` which consists of libgcc, libstdc++ to provide C/C++ 70Default is to use GNU runtime `TC_CXX_RUNTIME = "gnu"` which consists of libgcc, libstdc++ to provide C/C++
71runtime support. However it's possible to use LLVM runtime to replace it where 71runtime support. However it's possible to use LLVM runtime to replace it where
72compile-rt, llvm libunwind, and libc++ are used to provide C/C++ runtime, while 72compile-rt, llvm libunwind, and libc++ are used to provide C/C++ runtime, while
73GNU runtime works with both GCC and Clang, LLVM runtime is only tested with Clang 73GNU runtime works with both GCC and Clang, LLVM runtime is only tested with Clang
74compiler, switching to use LLVM runtime is done via a config metadata knob 74compiler, switching to use LLVM runtime is done via a config metadata knob
75 75
76```shell 76```shell
77RUNTIME = "llvm" 77TC_CXX_RUNTIME = "llvm"
78``` 78```
79 79
80RUNTIME variable influences individual runtime elements and can be set explicitly as well 80TC_CXX_RUNTIME variable influences individual runtime elements and can be set explicitly as well
81e.g. `LIBCPLUSPLUS` `COMPILER_RT` and `UNWINDLIB`. 81e.g. `LIBCPLUSPLUS` `COMPILER_RT` and `UNWINDLIB`.
82 82
83Please note that this will still use crt files from GNU compiler always, while llvm now 83Please note that this will still use crt files from GNU compiler always, while llvm now
@@ -85,8 +85,8 @@ do provide crt files, they have not been yet integrated into the toolchain.
85 85
86# Default C++ Standard Library Switch 86# Default C++ Standard Library Switch
87 87
88Using RUNTIME variable will select which C++ runtime is used, however it can be overridden 88Using TC_CXX_RUNTIME variable will select which C++ runtime is used, however it can be overridden
89if needed to by modifying `LIBCPLUSPLUS` variable, usually defaults used by `RUNTIME` are 89if needed to by modifying `LIBCPLUSPLUS` variable, usually defaults used by `TC_CXX_RUNTIME` are
90best fit. e.g. below we select LLVM C++ as default C++ runtime. 90best fit. e.g. below we select LLVM C++ as default C++ runtime.
91 91
92```shell 92```shell