| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
This gcc option is not supported in clang
hence remove it
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
| |
Adding it to TOOLCHAIN_OPTIONS renders libtool useless and its not able to
build .so
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
| |
We can get past the errors due to -Werror when unused cmdline
options appear on compiler cmdline
e.g.
error: argument unused during compilation: '-pie'
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
|
|
|
|
|
|
|
| |
OE-Core now uses -march=armv7ve for cortext-a7 and clang/llvm doesnt
have arch tunable for armv7ve, we revert to prior art of using armv7-a
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
| |
These are not part of target image and many of these tools are still
not ported to be buildable with clang, so lets use gcc for building them
at this moment
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
| |
The option is not defined for llvm/clang but the defaults are hard-float
anyway so not needed
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
brings it inline with gcc toolchain
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
compiler
We add clang as an alternative compiler, it sitll uses underlying
binutils and compiler runtime, it will only do the compilation and defer
link, to GNU ld/gold, to compile a component usign clang add
TOOLCHAIN_pn-<recipe-name> = "clang"
DEPENDS_append_pn-<recipe-name> = " clang-cross "
And OE will start using clang to compile <recipe-name>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|