| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Using cmdline options -std doesnt always work e.g. boost
where it uses c++ driver (clang++) to invoke compilation
but then passes '-x c' to choose the language for compilation
Which ends in errors like below
error: invalid argument '-std=c++14' not allowed with 'C'
Therefore change the defaults in driver itself to use gnu++14
which is default with g++ from gcc7+ too.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
latest gcc7 also defaults to c++14, some packages
have started to use c++11 and newer features without
specifying -std option and rightly so now that gcc
defaults are c++14, applications can safely assume
c++14 as default
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
build llvm libunwind along with libcxx
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
| |
This matches with OE-Core expectations and we
do not need to inject PIE flags manually via
SECURITY_CFLAGS which does not always work
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
| |
gcc in core now is configured with these options but clang
does not have a configuration level knob so we still need to
pass it old way
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
| |
GCC ignores unused arguements by default, but Clang needs this extra
parameter to stop printing warnings about LDFLAGS passed during
compiling stage and CFLAGS passed during linking stage.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
Its not ported to mips yet
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
A step towards unplugging gcc runtime
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
| |
|
|
|
|
| |
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>
|
|
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>
|