summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * chromium,gn-native: Remove dependency on native libc++Khem Raj2021-08-136-12/+28
| | | | | | | | | | | | | | native versions of libcxx and compiler-rt are only available in honister and newer Signed-off-by: Khem Raj <raj.khem@gmail.com>
| * llvm: Do not crash on weird `bitcast <1 x i8*> to i8*`Naveen Saini2020-11-042-0/+52
| | | | | | | | | | | | | | | | | | This patch is already merged in llvm-11. Ref: https://github.com/llvm/llvm-project/commit/381054a989ebd0b585fee46f2a01a7c5de10acf7 Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
| * Remove compiler arguments from CLANG_TIDY_EXEMQueiros2020-10-221-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> Backported from master to dunfell branch (cherry picked from commit 9d5fd8357d2f00a273f3d80fb37bb07cc537a155). Signed-off-by: Daniel Dittmann <daniel.dittmann@rohde-schwarz.com>
| * clang: Enable C functions for cl_khr_mipmap_image_write extensionNaveen Saini2020-10-192-0/+115
| | | | | | | | | | | | This patch is already merged in llvm-11. Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
| * drone: Fix branch name to detach from yoe branchKhem Raj2020-08-041-2/+6
| | | | | | | | | | | | | | Currently it expect the common branch names like master and dunfell match between meta-clang and yoe which may not be case Signed-off-by: Khem Raj <raj.khem@gmail.com>
| * clang: Add packageconfig to select default unwinderKhem Raj2020-08-011-0/+1
| | | | | | | | | | | | | | | | | | | | a choice is needed to be made for selecting unwinder library defaults ( --unwindlib ), by default we choose libgcc unwinder when packageconfig is disabled and only use llvm unwinder when this option is enabled Fixes Issue #332 Signed-off-by: Khem Raj <raj.khem@gmail.com>
| * libcxx: Fix linking based upon chosen compiler runtimeKhem Raj2020-08-011-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libcxx can use either libgcc_s or llvm libunwind for unwinder functionality, the defaults are platform dependent, therefore with this patch we make intentional choice based on RUNTIME settings chosen, e.g. when using GNU runtime we use libgcc and also ensure that it add right compiler options to build as well, since libcxx build looks C runtime by calling $($CC --print-libgcc-file-name) to build libc++abi.so unless we use right -rtlib option it will result in linking wrong library Enable RTTI as well do not enable llvm unwinder unless we chose llvm runtime, even that might not work since libpthread from glibc explicitly dlopens libgcc_s.so to enable unwinding https://github.com/bminor/glibc/blob/5f72f9800b250410cad3abfeeb09469ef12b2438/sysdeps/nptl/unwind-forcedunwind.c#L53...L58 Fixes Issue #332 Signed-off-by: Khem Raj <raj.khem@gmail.com>
| * drone: Switch triggers to use dunfell branchKhem Raj2020-07-101-3/+3
| | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | intel-mediasdk,optee-os-stm32mp: Use dynamic-layersKhem Raj2022-02-035-0/+4
| | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | chromium,gn: Do not depend on libc++ native recipesKhem Raj2021-08-134-2/+20
| | | | | | | | | | | | | | | | | | Master meta-browser has moved away from gcc completely even for native portions, but those changes require master branch of meta-clang as well for older layers where older than clang 13 is used, lets undo those changes Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | Fix OP-TEE build with clangBernhard Rosenkränzer2021-07-142-0/+74
| | | | | | | | Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
* | Fix meta-intel/meta-clang collisionsBernhard Rosenkränzer2021-07-143-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | meta-intel assumes LLVM 10 or 11 is being built, and forces a version of SPIRV-LLVM-Translator that doesn't work with LLVM 12. Override this with an LLVM 12 compatible version. Also, meta-intel pulls in intel-mediasdk which, out of the box, doesn't build with compiler-rt. Add a patch to intel-mediasdk that fixes this. Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com> Upstream-Status: Pending
* | nonclangable: Remove no-integrated-as workarounds for opensslBernhard Rosenkränzer2021-07-141-11/+0
| | | | | | | | | | | | The problem is fixed and the workaround actually breaks things Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
* | valgrind: update builtin_setjmp to work with current clang, fix testsBernhard Rosenkränzer2021-07-143-39/+674
| | | | | | | | Signed-off-by: Bernhard Rosenkraenzer <bernhard.rosenkraenzer.ext@huawei.com>
* | valgrind: Allow building with clangBernhard Rosenkränzer2021-07-143-1/+127
| | | | | | | | | | | | | | | | Allow building valgrind with clang -- merge a patch from the Android NDK to fix the valgrind+clang aarch64 combo Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
* | Build profiling versions of compiler-rtBernhard Rosenkränzer2021-07-141-1/+1
| | | | | | | | | | | | | | | | Revert the upstream change moving the profiling version to compiler-rt-sanitizers - we need the profiling version (but not yet the sanitizers) for ACTS Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
* | nonclangable.conf: Remove workaround for a clang bug that has been fixedBernhard Rosenkränzer2021-07-141-3/+0
| | | | | | | | Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
* | Allow building cpufrequtils with clangBernhard Rosenkränzer2021-07-143-5/+34
| | | | | | | | | | | | | | Make sure invalid assembly code isn't included even in unreachable code; remove TOOLCHAIN=gcc workaround. Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
* | Allow building ppp with clangBernhard Rosenkränzer2021-07-141-4/+0
| | | | | | | | | | | | | | ppp's use of nested functions and gcc specific flags has been fixed. The workaround is no longer necessary. Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
* | Allow mongodb to be built with clangBernhard Rosenkränzer2021-07-141-2/+0
| | | | | | | | | | | | | | Building it with gcc was a workaround for a bug that has been fixed a long time ago. The workaround is no longer necessary. Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
* | libffi: Allow building with clang integrated-asBernhard Rosenkränzer2021-07-141-5/+0
| | | | | | | | | | | | | | The problem preventing this from succeeding earlier has already been fixed in libffi. There's no reason to keep the workaround. Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
* | Document why cpufrequtils isn't built with clangBernhard Rosenkränzer2021-07-141-0/+4
| | | | | | | | Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
* | clang: Allow building babeltrace2 with clangBernhard Rosenkränzer2021-07-143-2/+33
| | | | | | | | | | | | | | babeltrace2 failed to build with clang because of a bug in babeltrace. Fixing babeltrace is a better fix than forcing it to build with gcc. Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
* | clang: Fix pixman on 32-bit armBernhard Rosenkränzer2021-07-141-5/+5
| | | | | | | | | | | | Pixman needs workarounds for clang on 32-bit ARM Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
* | Drop unnecessary TOOLCHAIN-*="gcc" workaroundsBernhard Rosenkränzer2021-07-141-5/+8
| | | | | | | | Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
* | Build u-boot-seco-imx with gccBernhard Rosenkränzer2021-07-141-0/+1
| | | | | | | | | | | | | | | | | | Makefiles in u-boot-seco-imx hardcode gcc use - make sure the requested compiler is available even with TOOLCHAIN="clang" Fixes https://git.ostc-eu.org/OSTC/OHOS/meta-clang/-/issues/2 Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
* | Fix Avenger96 build with TOOLCHAIN="clang"Bernhard Rosenkränzer2021-07-141-0/+5
| | | | | | | | | | | | | | | | | | The problem is Makefiles in u-boot and trusted-firmware hardcoding compiler calls. This should be fixed at some point; until then, use the gcc toolchain for these components. Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
* | Fix building ltp and logrotate with clang 12 (and gcc >= 10)Bernhard Rosenkränzer2021-07-143-0/+36
| | | | | | | | | | | | | | Modern compilers default to -fno-common -- fixing the way in which multiply defined symbols are handled. Some code needs to be adapted. Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
* | Add patches to make dhcp and distcc build with clang 12Bernhard Rosenkränzer2021-07-144-0/+49
| | | | | | | | | | | | | | (Patches used without toolchain_clang condition because they also fix gcc >= 11 and don't hurt with older compilers) Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
* | Dunfell compatibilityBernhard Rosenkränzer2021-07-143-2/+179
| | | | | | | | Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
* | compiler-rt: Disable libfuzzer and profiler supportKhem Raj2021-05-191-0/+2
| | | | | | | | | | | | These are now moved into compiler-rt-sanitizers recipe Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | compiler-rt-sanitizers: Add recipeKhem Raj2021-05-191-0/+97
| | | | | | | | | | | | This recipe builds all sanitizers runtimes provided by compiler-rt Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | replace --rtlib with -rtlibKhem Raj2021-05-192-29/+29
| | | | | | | | | | | | This is advertised option from clang Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | compiler-rt: Remove -D_LIBCPP_HAS_MUSL_LIBC=ONKhem Raj2021-05-191-2/+0
| | | | | | | | | | | | this option is only effective when building libcxx Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | Replace --stdlibc=libc++ with -stdlibc=libc++Khem Raj2021-05-192-4/+4
| | | | | | | | | | | | | | | | | | This ensures that it matches with CMake's understanding of this option and when its removed then it silently removes -stdlibc=libc++ but leaves the spurious '-' in the commandline which confuses the compiler as it them expects input from stdin Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | clang: Enable dwarf-5 default debug infoKhem Raj2021-05-0434-61/+122
| | | | | | | | | | | | This matches with GCC 11 which is also defaulting to DWARF-5 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | clang: Add SDK_VENDOR string to CLANG_EXTRA_OE_VENDORSKhem Raj2021-04-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This helps in ensuring that SDK elements are built correctly as well, at present we get right builds for cross/target/native clang but not for nativesdk since it use SDK_VENDOR string for vendor eg. -yoesdk which currently is not added to known OE vendors, as a result nativesdk-clang does not build since crosssdk clang can not find runtime files e.g. libgcc Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Martin Jansa <Martin.Jansa@gmail.com>
* | openssh: Link with compiler-rt when using clangKhem Raj2021-04-232-3/+1
| | | | | | | | | | | | | | | | clang -ftrapv, needs compiler-rt [1] [1] https://github.com/openssh/openssh-portable/blob/master/INSTALL#L7 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | clang.bbclass: Define CMAKE_CLANG_TIDY directly using ${HOST_PREFIX}clang-tidyKhem Raj2021-04-231-4/+1
| | | | | | | | | | | | | | There is no need for exporting CLANG_TIDY, since its not a standard variable Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | layer.conf: Add 3.4 as supported releaseKhem Raj2021-04-151-1/+1
| | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | layer.conf: Drop gatesgarthKhem Raj2021-04-151-1/+1
| | | | | | | | | | | | it has its own branch Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | llvm-project-source: Add multilib vendor supportYi Fan Yu2021-04-151-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Generate all possible vendor name that a multilib build could use by using the variable MULTILIB_VARIANTS. ex: {TARGET_VENDOR} {TARGET_VENDOR}mllib32 Fixes build issue when compiling lib32-compiler-rt where clang has issue detecting gcc toolchain. when clang --print-search-dirs: lib32-recipe-sysroot//usr/lib/i686-wrsmllib32-linux should be lib32-recipe-sysroot//usr/lib/i686-wrsmllib32-linux/10.2.0/ Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
* | clang: Upgrade to 12.0.0 RC5Khem Raj2021-04-081-1/+1
| | | | | | | | | | | | | | * d28af7c654d8 remove -fpch-codegen and -fpch-debuginfo from Clang 12.0 release notes * 04ba60cfe598 [ORC][C-bindings] Fix some ORC C bindings function names and signatures. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | iwd,ell: Mark gcc onlyKhem Raj2021-04-081-0/+6
| | | | | | | | | | | | They have started using nested functions lately. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | clang: Do not use lld for building nativsdk clangKhem Raj2021-04-081-1/+0
| | | | | | | | | | | | | | | | | | While we can, it does not have the sspace for path dance that yocto does for relocable SDK which means clang components may end up being non-relocatable when SDK is installed in longer paths. So for now pay the price of switching back to binutils linker Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | clang: Update 12.0.0-RC4Khem Raj2021-04-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 31001be371e8 [LoopVectorize] Refine hasIrregularType predicate * 9ae9ab1ca343 [RISCV][MC] Fix nf encoding for vector ld/st whole register * ff2cf8fafa5a [InstCombine] avoid creating an extra instruction in zext fold and possible inf-loop * 5b3480610383 [InstCombine] add test for zext-of-icmps; NFC * 38dd45b00431 [X86][FastISel] Fix with.overflow eflags clobber (PR49587) * 79a79d1d01c4 [X86] Add test for PR49587 (NFC) * f05b64961056 [FastISel] Don't trivially kill extractvalues (PR49467) * e89cdf8937bb [OpenMP] Restore backwards compatibility for libomptarget * 8ca56905dd9b [PowerPC] Fix infinite loop in peephole CR optimization (PR49509) * f43958b7c497 [OpenMP] Fixed a crash in hidden helper thread * e94372d1b395 [SimplifyCFG] avoid sinking insts within an infinite-loop * f4c01f33f450 [Support] Fix 'keeping' temporary files on Windows 7 * 4990141a4366 [WoA][MSVC] Use default linker setting in MSVC-compatible driver [take 2] * e3186ba0f3b5 [aarch64][WOA64][docs] Release note for WoA-hosted LLVM 12 binary * 00441b8f4e5b [OpenCL][Docs] Release notes * ca14f0282fce [release][docs] List all cores Arm has added support for in LLVM 12. * c016eda3257e [release][docs] List all cores Arm has added support for in LLVM 12. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | bpftrace: Update to using master branchKhem Raj2021-03-312-2/+35
| | | | | | | | | | | | | | | | | | This is needed for fixing builds with master since clang 12 has dropped ORCv1 APIs Add a patch to fix build with clang-12 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | llvm-project-source: Re-implement add_more_target_vendors in pythonKhem Raj2021-03-302-16/+21
| | | | | | | | | | | | | | | | This is to avoid a ton of shell variables becoming dependencies Add every case in a new line Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | Drop browser-layer from dynamic layersKhem Raj2021-03-272-10/+0
| | | | | | | | | | | | | | These changes have been proposed for meta-browser itself see https://github.com/OSSystems/meta-browser/pull/489 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | compiler-rt: Fix build on armv6Khem Raj2021-03-252-0/+75
| | | | | | | | | | | | Fixes Issue #445 Signed-off-by: Khem Raj <raj.khem@gmail.com>