diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-05-23 22:49:03 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-05-26 13:28:53 -0700 |
commit | 384e8d169a2c408e2cef03ea2deb88fb82058011 (patch) | |
tree | eedc5b9072e961a814ffadd438d95f9067bf41de /README.md | |
parent | d9585f0acaec960b69ce1e7931894eb312abfddd (diff) | |
download | meta-clang-384e8d169a2c408e2cef03ea2deb88fb82058011.tar.gz |
clang: Do not provide llvm-native implicitly
Document a way to let clang provide llvm as well.
This helps this layer pass the yocto check layer test
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -51,6 +51,20 @@ TOOLCHAIN = "clang" | |||
51 | also look at `conf/nonclangable.conf` for list of recipes which do not yet fully | 51 | also look at `conf/nonclangable.conf` for list of recipes which do not yet fully |
52 | build with clang. | 52 | build with clang. |
53 | 53 | ||
54 | # Providing LLVM | ||
55 | |||
56 | clang recipes can provide llvm and related packages too, it might be worth using single | ||
57 | provider for llvm and clang to save some compile time and space, select the knobs | ||
58 | to point to clang, default is to use the version provided by core layer. | ||
59 | |||
60 | ```shell | ||
61 | PREFERRED_PROVIDER_llvm = "clang" | ||
62 | PREFERRED_PROVIDER_llvm-native = "clang-native" | ||
63 | PREFERRED_PROVIDER_nativesdk-llvm = "nativesdk-clang" | ||
64 | PROVIDES:pn-clang = "llvm" | ||
65 | PROVIDES:pn-clang-native = "llvm-native" | ||
66 | PROVIDES:pn-nativesdk-clang = "nativesdk-llvm" | ||
67 | ``` | ||
54 | # Default Compiler Runtime | 68 | # Default Compiler Runtime |
55 | 69 | ||
56 | Default is to use GNU runtime `RUNTIME = "gnu"` which consists of libgcc, libstdc++ to provide C/C++ | 70 | Default is to use GNU runtime `RUNTIME = "gnu"` which consists of libgcc, libstdc++ to provide C/C++ |