diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-05-05 23:07:12 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2016-05-05 23:07:12 -0700 |
commit | d56afbc8779b0c25541959ebc32fcdcfd1eb7cea (patch) | |
tree | 3de5ce0d92ecff8f44929f35ca68795eb2a0340b /README.md | |
parent | 67a069317b65fa89d70fe4e9bff235b41bdb102e (diff) | |
download | meta-clang-d56afbc8779b0c25541959ebc32fcdcfd1eb7cea.tar.gz |
Switch default compiler option to remain gcc
Users find it too intrusive that clang becomes the default
compiler, they would like to invoke it on demand for certain
packages only.
Use TOOLCHAIN ?= "clang" in local.conf if you want clang
to become default
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 19 |
1 files changed, 6 insertions, 13 deletions
@@ -25,16 +25,15 @@ BBLAYERS ?= " \ | |||
25 | 25 | ||
26 | # Default Compiler Switch | 26 | # Default Compiler Switch |
27 | 27 | ||
28 | Note that by default clang will become the system compiler, however if you wish to keep | 28 | Note that by default gcc will remain the system compiler, however if you wish |
29 | gcc be the default compiler and select clang for some packages only then you should | 29 | clang to be the default compiler then set |
30 | add | ||
31 | 30 | ||
32 | ```python | 31 | ```python |
33 | TOOLCHAIN ?= "gcc" | 32 | TOOLCHAIN ?= "clang" |
34 | ``` | 33 | ``` |
35 | 34 | ||
36 | to local.conf, this would now revert to using gcc as default compiler and then you | 35 | in local.conf, this would now switch to using clang as default compiler systemwide |
37 | can select clang for packages of your choices by writing bbappends for them containing | 36 | you can select clang per package too by writing bbappends for them containing |
38 | 37 | ||
39 | ```python | 38 | ```python |
40 | TOOLCHAIN = "clang" | 39 | TOOLCHAIN = "clang" |
@@ -62,13 +61,7 @@ simply create a bbappend under recipes-excluded/nonclangable e.g. | |||
62 | TOOLCHAIN = "gcc" | 61 | TOOLCHAIN = "gcc" |
63 | ``` | 62 | ``` |
64 | 63 | ||
65 | and OE will start using gcc to cross compile that recipe, please note that by default when meta-clang is in layermix | 64 | and OE will start using gcc to cross compile that recipe, |
66 | it will use clang as default system compiler, if you would like to disable that behaviour please add | ||
67 | |||
68 | ```shell | ||
69 | TOOLCHAIN = "gcc" | ||
70 | ``` | ||
71 | to your local.conf or some other global configuration metadata file. | ||
72 | 65 | ||
73 | # Dependencies | 66 | # Dependencies |
74 | 67 | ||