summaryrefslogtreecommitdiffstats
path: root/recipes-core/meta
Commit message (Collapse)AuthorAgeFilesLines
* Add the target option to the CLANG environment variables.Tobias Bayer2021-01-251-3/+3
| | | | | | This commit fixes an issue when building a cmake based project where clang-tidy is configured as co-compiler. Without this option clang-tidy will fail as it cannot determinate the target architecture. Signed-off-by: Tobias Bayer <tobiasbayer@outlook.de>
* Remove compiler arguments from CLANG_TIDY_EXEMQueiros2020-10-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | cclang-tidy doesn't process compilation flags like "-mlittle-endian" and "sysroot". The current export tries to use those flags, which makes clang-tidy fail like in the following example: > $ aarch64-poky-linux-clang-tidy fibonacci.cpp -mlittle-endian --sysroot=/opt/mgu22/sysroots/aarch64-poky-linux > LLVM ERROR: CommonOptionsParser: failed to parse command-line arguments. [CommonOptionsParser]: aarch64-poky-linux-clang-tidy: Unknown command line argument '-mlittle-endian'. Try: 'aarch64-poky-linux-clan$ > aarch64-poky-linux-clang-tidy: Did you mean '--list-checks'? > aarch64-poky-linux-clang-tidy: Unknown command line argument '--sysroot=/opt/mgu22/sysroots/aarch64-poky-linux'. Try: 'aarch64-poky-linux-clang-tidy --help' > aarch64-poky-linux-clang-tidy: Did you mean '--color=/opt/mgu22/sysroots/aarch64-poky-linux'? This change removes those compiler arguments: > $ aarch64-poky-linux-clang-tidy fibonacci.cpp > Error while trying to load a compilation database: > Could not auto-detect compilation database for file "fibonacci.cpp" > No compilation database found in /home/mqueiros/workspace/minimal-working-example/fibonacci or any parent directory > fixed-compilation-database: Error while opening fixed database: No such file or directory > json-compilation-database: Error while opening JSON database: No such file or directory > Running without flags. Signed-off-by: Mauro Queiros <maurofrqueiros@gmail.com>
* meta-environment-ext: Add bbappend to insert clang variables into envKhem Raj2020-09-133-18/+24
| | | | | | | | This helps defining CLANG* env vars in extensible SDK Fixes Issue #370 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* meta-environment: Conditionally add clang specific environment variablesKhem Raj2020-06-281-4/+6
| | | | | | | | Only when CLANGSDK = 1 Fixes Issue #338 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Enable a cross version of clang-tidyKhem Raj2019-01-311-0/+1
| | | | | | define CLANG_TIDY_EXE which is used by some build systems e.g. cmake Signed-off-by: Khem Raj <raj.khem@gmail.com>
* classes: Do not replace armv7ve with armv7a anymoreKhem Raj2017-08-291-2/+0
| | | | | | clang-5.0 supports the option now Signed-off-by: Khem Raj <raj.khem@gmail.com>
* meta-environment: Drop toolchain-clang overrideKhem Raj2016-05-101-6/+6
| | | | | | It does not work and moreover its redundant Signed-off-by: Khem Raj <raj.khem@gmail.com>
* meta-environment: Remove cmdline options unknown to clangKhem Raj2016-05-101-0/+7
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Remove -mmusl and -muclibcKhem Raj2016-04-011-0/+3
| | | | | | | | | | | | | | | | | | | | | | | These options were introduced in OE-Core to support multi libc SDKs and added with Author: Richard Purdie <richard.purdie@linuxfoundation.org> Date: Sat Jul 25 14:48:21 2015 +0100 toolchain-scripts: For non-glibc, pass compiler options to ensure the correct libc selection gcc-cross-canadian-<arch> is only built once. It needs to target all the different libcs, not just the currently selected one. This change ensures that if another libc is used, the compiler correctly selects the right one. [YOCTO #8025] (From OE-Core rev: da2e92e256054b137a1646fdad1fe1a47ba3215a) Clang however acts based on crosscompiler name and does not have option to controlled multi libc scene Signed-off-by: Khem Raj <raj.khem@gmail.com>
* sdk: Add support for adding clang to SDKKhem Raj2015-07-081-0/+8
Also export CLANGCC, CLANGCXX, CLANGCPP in SDK environment which can then be used to compile applications in SDK Additionally remove -mthumb-interwork from compiler options if target is arm Signed-off-by: Khem Raj <raj.khem@gmail.com>