summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* update clang to latest 8.x branchKhem Raj2019-03-121-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx, compiler-rt: Use forcevariable to specify TOOLCHAIN overrideKhem Raj2019-03-122-2/+3
| | | | | | | This may already be specified by another low priority override to point to gcc but we want to always use clang for compiling these packages Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openmp: Disable for risc-vKhem Raj2019-03-121-0/+3
| | | | | | | | | Not yet supprorted LIBOMP: libomp_check_variable(): LIBOMP_ARCH = UnknownArchitecture is unknown Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 8.0-rc4Khem Raj2019-03-121-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Fix typos in overrides for compiler rtKhem Raj2019-03-051-3/+3
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Link with libgcc when building static versions on armKhem Raj2019-03-041-0/+7
| | | | | | | | | | | | | | | since llvm libunwind does not provide all the symbols that glibc/libpthread expects when doing static linking it fails with some undefined symbols e.g. /usr/src/debug/glibc/2.29-r0/git/nptl/unwind.c:121: undefined reference to `_Unwind_ForcedUnwind' which is found in libgcc_s.so, ideally one day clang unwind library should get there this is only an issue on glibc, musl works ok Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang:bbclass: Do not use compiler-rt/libcxx for recipes which use gccKhem Raj2019-03-031-0/+3
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* busybox: Use gcc to compile on x86Khem Raj2019-03-031-0/+1
| | | | | | | i386 inline assembly runs out of registers on clang so for now let gcc be used Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nonclangable: Use GNU assembler for tinymembenchKhem Raj2019-03-031-0/+7
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nonclangable.conf: Use GNU assembler for kexec-toolsKhem Raj2019-03-031-0/+8
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 8.0-rc3Khem Raj2019-02-271-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang.bbclass: Redefine ar/nm/ranlibKhem Raj2019-02-251-0/+3
| | | | | | | | OE-core now points to gcc-* variants of these variables which will not be installed when a package is built with clang moreover llvm version would be needed for thin-lto to work anyway Signed-off-by: Khem Raj <raj.khem@gmail.com>
* README: Document COMPILER_RT and LIBCPLUSPLUSKhem Raj2019-02-231-7/+5
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang.bbclass: Define COMPILER_RT and LIBCPLUSPLUSKhem Raj2019-02-231-0/+6
| | | | | | | LIBCPLUSPLUS and COMPILER_RT are variables to indicate if clang c/c++ runtime should be used as well or not Signed-off-by: Khem Raj <raj.khem@gmail.com>
* README: Update comments about using libc++ and compiler-rtKhem Raj2019-02-231-7/+6
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt,libcxx: Add --stdlib=libc++ to compiler flagsKhem Raj2019-02-232-7/+8
| | | | | | | | | | - We do not need it with CXX - adding to compiler flag makes sure that libcxx headers are used even when C (clang) compiler is used - Eventually libcxx should provide virtual/${TARGET_PREFIX}compilerlibs add it in comments Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang.bbclass: Remove compilerlibs from BASEDEPENDSKhem Raj2019-02-231-1/+1
| | | | | | We do not need it when using clang Signed-off-by: Khem Raj <raj.khem@gmail.com>
* layer.conf: Remove dead code and add comment to define compiler runtimeKhem Raj2019-02-231-3/+1
| | | | | | | Eventually we should be able to pose libcxx+other llvm libs as full replacement for gcc runtime, for now add it in comments Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest 8.x releaseKhem Raj2019-02-231-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 8.x branchKhem Raj2019-02-211-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Implement -fmacro-prefix-mapKhem Raj2019-02-153-0/+564
| | | | | | | OE-core now uses it so, we have to take the patch from review system, until it is in master Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest 8.xKhem Raj2019-02-151-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Define AR, NM and RANLIB to point to llvm wrappersKhem Raj2019-02-142-0/+4
| | | | | | helps with LTO enabled cross builds Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Define _LIBCPP_HAS_MUSL_LIBC when building for muslKhem Raj2019-02-131-2/+3
| | | | | | | | | | libcxx headers are used during compiler-rt build and libcxx needs to know the libc type in order to include correct wrappers for locale headers Remove duplicated -DCOMPILER_RT_BUILD_XRAY=OFF Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest 8.x branchKhem Raj2019-02-1319-29/+30
| | | | | | Forward port ppc/musl patch Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nonclangable: Disable internal assembler for directFB on ARMKhem Raj2019-02-121-0/+5
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Use gold linker for nativersdkKhem Raj2019-02-111-12/+12
| | | | | | | | | | | | | | nativesdk packages are special in OE, where linker pads the dynamic section with additional bits so that can be patched to a relocatable location duting installing SDK, lld will need such a patch if it has to link the nativesdk apps, until then we use gold Add more fine grained packageconfigs for libpfm, ncurses, and libedit Enable clang as toolchain to build nativesdk version of clang with gold linker Signed-off-by: Khem Raj <raj.khem@gmail.com>
* cross,sdk,cross-canadian: Create symlinks for llvm-ar llvm-ranlib llvm-nmKhem Raj2019-02-113-33/+19
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang.bbclass: Set nativesk ldso location correctly during linkKhem Raj2019-02-111-3/+8
| | | | | | | | | | Add aarch64 host support Enable lld via LDFLGS instead of TOOLCHAIN_FLAGS which also get passed to compiler Add relative rpaths so the liraries from SDK sysroot are preferred over sdk host when SDK is used Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nativesdk-clang-glue: Symlink /lib dir for libgcc_s and friendsKhem Raj2019-02-111-1/+3
| | | | | | Without this -fuse-ld=lld fails to find libgcc_s Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Fix nativesdk builds to use clang-nativeKhem Raj2019-02-116-13/+47
| | | | | | | | | | - User lld for linking nativesdk-clang - Enable LTO to build nativesdk-clang - Use -static-libgcc when using gold/lld for nativesdk clang build - Use llvm wrappers for ar ranlib and nm to help LTO - Package and create cross versions of lld Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang-nativesdk: Do not default to clang-runtimeKhem Raj2019-02-091-1/+1
| | | | | | | | | | | This make it use same runtime as the cross compiler default, which is more or less what is going to be case, if one wants to use clang runtime then it should be enabled across all clang variants (native/nativesdk/cross) Fixes Issue #66 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libunwind: Use static version from libcxxKhem Raj2019-02-091-0/+4
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Enable lld for linker during stage2 of clang-native buildKhem Raj2019-02-091-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Enable 2 stage bootstrap for clang-nativeKhem Raj2019-02-091-5/+23
| | | | | | This will help in using clang Thin-LTO to compile clang itself Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Disable standalone buildKhem Raj2019-02-092-5/+11
| | | | | | | | | | | standalone build starts to look for c++ headers which then are fed from libstc++ because libcxx is not built yet, instead let build use it from in-tree libcxx enable llvm-ar/llvm-ranlib/llvm-nm to provide ar/ranlib/nm respectively, this helps with lto enabled builds for libcxx Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest 8.xKhem Raj2019-02-091-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Enable LTO and lld based on distro knobsKhem Raj2019-02-093-4/+15
| | | | | | | | | | | | | | | | | | | | | | | | Add to local.conf or distro config the following to enable lto flavors and lld linker DISTRO_FEATURES += "thin-lto" DISTRO_FEATURES += "full-lto" DISTRO_FEATURES += "lld" Add lto.bbclass To enable LTO is currently per recipe, or globally to enable globally add following to global config meta-data e.g. local.conf INHRIT += "lto" other-wise enable LTO per recipe using inherit lto to recipe via bbappend or in main recipe Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Compiler native and clang for target with Thin-LTO enabledKhem Raj2019-02-071-3/+10
| | | | | | Should speed up compiler speed Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Refresh patches and use static libunwind.a during default linkKhem Raj2019-02-0719-63/+63
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Make libunwind as static libraryKhem Raj2019-02-072-19/+14
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 8.0.0 RC2Khem Raj2019-02-071-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 8.x/rc1Khem Raj2019-02-031-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 8.x release branchKhem Raj2019-02-011-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Enable a cross version of clang-tidyKhem Raj2019-01-315-0/+5
| | | | | | define CLANG_TIDY_EXE which is used by some build systems e.g. cmake Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm: Add .dword support for aarch64 MCKhem Raj2019-01-312-0/+58
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Add libunwind to linker cmdline when using compiler-rtKhem Raj2019-01-311-6/+9
| | | | | | libunwind also drags in libpthread and libdl so add those too Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nonclangable.conf: Use GNU assembler for openssl10Khem Raj2019-01-311-0/+2
| | | | | | It uses gnu as specific syntax Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mozjs: Undo -fno-tree-vrp for clangKhem Raj2019-01-291-0/+3
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to tip of release/8.xKhem Raj2019-01-291-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>