summaryrefslogtreecommitdiffstats
path: root/recipes-core/meta/clang-environment.inc
Commit message (Collapse)AuthorAgeFilesLines
* meta-clang: Convert to new override syntaxSigned-off-by: Martin Jansa2021-08-031-9/+9
| | | | | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* 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-131-0/+19
This helps defining CLANG* env vars in extensible SDK Fixes Issue #370 Signed-off-by: Khem Raj <raj.khem@gmail.com>