summaryrefslogtreecommitdiffstats
path: root/conf/layer.conf
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2015-08-21 14:07:05 -0700
committerKhem Raj <raj.khem@gmail.com>2015-08-21 14:07:05 -0700
commit1b0f5de3b3137509a7c60d372c5e58782144ac57 (patch)
tree4c50d5c024fe0f5ac690d522da16fe6a8280318a /conf/layer.conf
parent94749d600c974c773800192687cb284a8c35b483 (diff)
downloadmeta-clang-1b0f5de3b3137509a7c60d372c5e58782144ac57.tar.gz
clang/classes: Invert the logic to select toolchain and default to clang
So far we have been selecting which packages are compiled using clang this patch changes the logic to use clang by default unless selecting TOOLCHAIN = "gcc" explicitly in the recipe We have not yet enabled clang for native recipes, its only enabled for target recipes needing cross compilation as of now. Get rid of configuration file and move the code to clang.bbclass, simplifies the logic If needed to select gcc to be default system compiler set TOOLCHAIN = "gcc" in local.conf Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'conf/layer.conf')
-rw-r--r--conf/layer.conf2
1 files changed, 2 insertions, 0 deletions
diff --git a/conf/layer.conf b/conf/layer.conf
index ec86d64..a378a6e 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -12,4 +12,6 @@ BBFILE_PRIORITY_clang-layer = "7"
12#PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-initial_forcevariable = "clang-cross" 12#PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-initial_forcevariable = "clang-cross"
13PREFERRED_PROVIDER_libgcc-initial = "libgcc-initial" 13PREFERRED_PROVIDER_libgcc-initial = "libgcc-initial"
14 14
15BB_DANGLINGAPPENDS_WARNONLY = "1"
16
15INHERIT += "clang" 17INHERIT += "clang"