summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-05-05 23:07:12 -0700
committerKhem Raj <raj.khem@gmail.com>2016-05-05 23:07:12 -0700
commitd56afbc8779b0c25541959ebc32fcdcfd1eb7cea (patch)
tree3de5ce0d92ecff8f44929f35ca68795eb2a0340b /README.md
parent67a069317b65fa89d70fe4e9bff235b41bdb102e (diff)
downloadmeta-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.md19
1 files changed, 6 insertions, 13 deletions
diff --git a/README.md b/README.md
index d3976f2..97d517c 100644
--- a/README.md
+++ b/README.md
@@ -25,16 +25,15 @@ BBLAYERS ?= " \
25 25
26# Default Compiler Switch 26# Default Compiler Switch
27 27
28Note that by default clang will become the system compiler, however if you wish to keep 28Note that by default gcc will remain the system compiler, however if you wish
29gcc be the default compiler and select clang for some packages only then you should 29clang to be the default compiler then set
30add
31 30
32```python 31```python
33TOOLCHAIN ?= "gcc" 32TOOLCHAIN ?= "clang"
34``` 33```
35 34
36to local.conf, this would now revert to using gcc as default compiler and then you 35in local.conf, this would now switch to using clang as default compiler systemwide
37can select clang for packages of your choices by writing bbappends for them containing 36you can select clang per package too by writing bbappends for them containing
38 37
39```python 38```python
40TOOLCHAIN = "clang" 39TOOLCHAIN = "clang"
@@ -62,13 +61,7 @@ simply create a bbappend under recipes-excluded/nonclangable e.g.
62TOOLCHAIN = "gcc" 61TOOLCHAIN = "gcc"
63``` 62```
64 63
65and OE will start using gcc to cross compile that recipe, please note that by default when meta-clang is in layermix 64and OE will start using gcc to cross compile that recipe,
66it will use clang as default system compiler, if you would like to disable that behaviour please add
67
68```shell
69TOOLCHAIN = "gcc"
70```
71to your local.conf or some other global configuration metadata file.
72 65
73# Dependencies 66# Dependencies
74 67