diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-10-23 17:20:24 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-10-25 10:20:08 -0700 |
commit | 41b7f5296d1176160712d79730d3b5ce0c58d1da (patch) | |
tree | 1c21380d428f5a7dd175431136159d54435c16e2 /README.md | |
parent | 4c6512205b11140ed381d9fd1b7e0dcfb587c023 (diff) | |
download | meta-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.md | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -67,17 +67,17 @@ PROVIDES:pn-nativesdk-clang = "nativesdk-llvm" | |||
67 | ``` | 67 | ``` |
68 | # Default Compiler Runtime | 68 | # Default Compiler Runtime |
69 | 69 | ||
70 | Default is to use GNU runtime `RUNTIME = "gnu"` which consists of libgcc, libstdc++ to provide C/C++ | 70 | Default is to use GNU runtime `TC_CXX_RUNTIME = "gnu"` which consists of libgcc, libstdc++ to provide C/C++ |
71 | runtime support. However it's possible to use LLVM runtime to replace it where | 71 | runtime support. However it's possible to use LLVM runtime to replace it where |
72 | compile-rt, llvm libunwind, and libc++ are used to provide C/C++ runtime, while | 72 | compile-rt, llvm libunwind, and libc++ are used to provide C/C++ runtime, while |
73 | GNU runtime works with both GCC and Clang, LLVM runtime is only tested with Clang | 73 | GNU runtime works with both GCC and Clang, LLVM runtime is only tested with Clang |
74 | compiler, switching to use LLVM runtime is done via a config metadata knob | 74 | compiler, switching to use LLVM runtime is done via a config metadata knob |
75 | 75 | ||
76 | ```shell | 76 | ```shell |
77 | RUNTIME = "llvm" | 77 | TC_CXX_RUNTIME = "llvm" |
78 | ``` | 78 | ``` |
79 | 79 | ||
80 | RUNTIME variable influences individual runtime elements and can be set explicitly as well | 80 | TC_CXX_RUNTIME variable influences individual runtime elements and can be set explicitly as well |
81 | e.g. `LIBCPLUSPLUS` `COMPILER_RT` and `UNWINDLIB`. | 81 | e.g. `LIBCPLUSPLUS` `COMPILER_RT` and `UNWINDLIB`. |
82 | 82 | ||
83 | Please note that this will still use crt files from GNU compiler always, while llvm now | 83 | Please 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 | ||
88 | Using RUNTIME variable will select which C++ runtime is used, however it can be overridden | 88 | Using TC_CXX_RUNTIME variable will select which C++ runtime is used, however it can be overridden |
89 | if needed to by modifying `LIBCPLUSPLUS` variable, usually defaults used by `RUNTIME` are | 89 | if needed to by modifying `LIBCPLUSPLUS` variable, usually defaults used by `TC_CXX_RUNTIME` are |
90 | best fit. e.g. below we select LLVM C++ as default C++ runtime. | 90 | best fit. e.g. below we select LLVM C++ as default C++ runtime. |
91 | 91 | ||
92 | ```shell | 92 | ```shell |