summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang/compiler-rt_git.bb
Commit message (Collapse)AuthorAgeFilesLines
* libcxx,compiler-rt: Use python3 during buildKhem Raj2020-01-201-1/+1
| | | | | | py2 is gone from oe-core Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Make llvm CRT components optionalDaniel McGregor2020-01-201-0/+3
| | | | | | | LLVM 9+ provides the crt startup components crtbegin.o and crtend.o, enabled by default. Make using these with the clang runtime optional. Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
* clang: stay closer to cmake.bbclassDaniel McGregor2020-01-201-30/+9
| | | | | | | | | | | Allow more of the cmake variables coming from the OE environment through, otherwise the release C flags and CXX flags get reset to LLVM's default, which greatly extend build times. Also switch to using cmake.bbclass's do_compile and do_install commands. There's no need to call ninja directly anymore. Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
* clang: use nonarch_libdir/clang for all runtime filesDaniel McGregor2020-01-201-10/+16
| | | | | | | | This allows the cross compiler to always find the runtime libraries in the same place, no matter the value of libdir. This is required for multilib to work correctly. Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
* compiler-rt: Depend on libcrypt for sanitizersKhem Raj2019-12-261-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Package compiler-rt correctly with non-empty LLVM_LIBDIR_SUFFIXHiroshi Hatake2019-12-161-6/+6
|
* Compute LLVM_LIBDIR_SUFFIX correctly on multiarch environmentHiroshi Hatake2019-12-161-0/+1
| | | | Co-authored-by: INAJIMA Daisuke <inajima@soum.co.jp>
* clang: Remove editing THUMB_TUNE_CCARGSKhem Raj2019-10-021-3/+0
| | | | | | THUMB_TUNE_CCARGS is gone from oe-core Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang-runtime: Use INHIBIT_DEFAULT_DEPS = "1"Khem Raj2019-10-011-1/+3
| | | | | | | This ensures that clang-runtime elements e.g. llvm-libunwind can be used with gcc as well Signed-off-by: Khem Raj <raj.khem@gmail.com>
* runtime: Automatically add llvm-libunwind based on COMPILER_RT asking for ↵Khem Raj2019-09-281-4/+3
| | | | | | --unwindlib=libunwind Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: stage libs in case of multlib as wellAnuj Mittal2019-09-181-1/+5
| | | | | | | We install compiler libs in lib irrespective of value of libdir. Make sure that these libs are actually staged as well when libdir != /usr/lib. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* compiler-rt: Package into /usr/lib alwaysKhem Raj2019-09-021-13/+14
| | | | | | | Clang differentiates on compiler-rt name and not dirs so installing all of them into /usr/lib/clang is fine and expected Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx,compiler-rt: Add --unwindlib=libunwind to COMPILER_RTKhem Raj2019-08-121-1/+1
| | | | | | | This is new way of enabling llvm unwinder as default unwinder now build shared libunwind which is needed for new option Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to 9.x-rcXKhem Raj2019-08-121-4/+5
| | | | | | | dont package six.py, its provided by python3-six package default to lp64d ABI and rv64gc ISA. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx, compiler-rt: Use forcevariable to specify TOOLCHAIN overrideKhem Raj2019-03-121-1/+1
| | | | | | | 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>
* compiler-rt,libcxx: Add --stdlib=libc++ to compiler flagsKhem Raj2019-02-231-3/+3
| | | | | | | | | | - 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>
* compiler-rt: Define AR, NM and RANLIB to point to llvm wrappersKhem Raj2019-02-141-0/+3
| | | | | | 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>
* compiler-rt: Disable standalone buildKhem Raj2019-02-091-5/+7
| | | | | | | | | | | 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>
* compiler-rt,libcxx: Remove --rtlib=compiler-rtKhem Raj2019-01-261-0/+1
| | | | | | This avoids catch-22 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx,compiler-rt: Append to CXX along with TARGET_CXXFLAGS to carry ↵Khem Raj2019-01-241-3/+3
| | | | | | | | -stdlib flag Since TARGET_CXXFLAGS does not get passed into all packages Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update license checksumsKhem Raj2019-01-191-1/+1
| | | | | | The only change is update to the year in license files Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Fix unintended dependencies concatenationAdam Romanek2019-01-041-1/+1
| | | | | The error message was: >> Nothing PROVIDES 'ninja-nativeclang-native' (but virtual:nativesdk:/media/storage/romanek-adam/build-2018-12-17-clang/workspace/meta-clang/recipes-devtools/clang/compiler-rt_git.bb DEPENDS on or otherwise requires it)
* nativesdk-compiler-rt: Add missing dep on clang-nativeKhem Raj2018-12-271-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Do not force lld to link stepKhem Raj2018-12-271-2/+0
| | | | | | This was an experimental change Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Rework llvm/clang/compiler-rt/libcxx/lldb recipesKhem Raj2018-12-271-17/+7
| | | | | | | | | | | | | | This is an overhaul of clang/llvm project related recipes * switch to using a flat mono repo for all clang/llvm projects * Add llvm-project-source recipe which will prepare source tree in work-shared for all recipes much like kernel and gcc * build lld as part of clang recipes, its much easier and saves build time and hopefully nativesdk version will be built now for free * switch to official git repos at git://github.com/llvm-project * Adjust all recipes to use shared sources Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Revert "compiler-rt: Use pre-computed size of struct ustat for Linux"Khem Raj2018-09-091-1/+0
| | | | This reverts commit 9a0bd29eac2be5f88e3e198929181d3591dd7ec7.
* compiler-rt: Create lib/linux only if there is content to move to itKhem Raj2018-09-091-3/+4
| | | | | | | Fixes builds where there are no files inside ${D}${libdir}/linux but the empty dir is still created Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Package /usr/share into dev packageKhem Raj2018-09-091-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Upgrade to clang 7.0.0 Release (rc2)Khem Raj2018-09-091-1/+1
| | | | | | | | | | | | | | | | | - Update compiler-rt/llvm/clang/lld licence checksums Triggerred due to copyright year update to 2018 Add libunwind and libcxxabi license to checksum list too - Switch to https protocol for fetching from github - Fix _finite functions on musl - Package new .so files built with clang - package libLLVM-${MAJOR_VER}.so as well since llvm-7 generates it without MINOR_VERSION Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Use pre-computed size of struct ustat for LinuxHongxu Jia2018-09-091-0/+1
| | | | | | | | | | | | | | | <sys/ustat.h> has been removed from glibc 2.28 by: commit cf2478d53ad7071e84c724a986b56fe17f4f4ca7 author: Adhemerval Zanella <adhemerval.zanella@linaro.org> Date: Sun Mar 18 11:28:59 2018 +0800 Deprecate ustat syscall interface This patch uses pre-computed size of struct ustat for Linux to fix https://bugs.llvm.org/show_bug.cgi?id=37418 Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
* compiler-rt: Let dev package rdep on staticdev packageKhem Raj2018-05-151-0/+3
| | | | | | | | | Let dev package be empty, this should solve the dependency issues when generating SDKs Fixes #51 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Disable sanitizers on mips32Khem Raj2018-05-131-0/+1
| | | | | | | | They fail to compile error: 'assertion_failed__73' declared as an array with a negative size Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Drop a workaround to build for aarch64Khem Raj2018-05-121-1/+1
| | | | | | | | | | | | | | | | | This workaround seems to no longer be needed for clang6.0 onwards as a bonus, the regressions for compiling for other arches is also gone since we drop this patch. Fixes issue #57 Fixes issue #52 Use internal assembler This fixes the issue reported here https://reviews.llvm.org/D35696 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Drop setting NINJA_STATUSKhem Raj2018-04-191-2/+2
| | | | | | This is no longer needed Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Add settings to build with libcxx as default C++ standard libraryRobin Lee2018-03-031-0/+1
| | | | Signed-off-by: Robin Lee <cheeselee@fedoraproject>
* clang,llvm.compiler-rt,lld,lldb: Update to latest release_50 rc3Khem Raj2017-08-251-1/+0
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Use final version string in install pathsKhem Raj2017-07-311-7/+7
| | | | | | | We append SRCPV to PV which is not what we want for install dir name, it should be final compiler-rt release version e.g. 5.0.0 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm-libunwind: DeleteKhem Raj2017-07-311-1/+0
| | | | | | build llvm libunwind along with libcxx Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Use ninja generator on top of cmakeKhem Raj2017-07-301-0/+12
| | | | | | ninja is in OE-Core now Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Fix build on x86_64Khem Raj2017-07-221-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Fix build on aarch64Khem Raj2017-07-201-0/+1
| | | | | | | | Pass armv8.1-a for march when using crc instruction Fix #38 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang/llvm: Move to upcoming 5.0.0 ( trunk ) releaseKhem Raj2017-05-221-5/+6
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Disable xray for nowKhem Raj2017-04-151-0/+1
| | | | | | | | | | | | | | | | Fails on some arches e.g. rpi3 /mnt/a/build/tmp-glibc/work/cortexa7hf-neon-vfpv4-oe-linux-gnueabi/compiler-rt/4.0.0+gitAUTOINC+1fdc27db84-r0/git/lib/xray/xray_inmemory_log.cc:88:33: error: unknown type name 'L' std::lock_guard<std::mutex> L(LogMutex); ^ /mnt/a/build/tmp-glibc/work/cortexa7hf-neon-vfpv4-oe-linux-gnueabi/compiler-rt/4.0.0+gitAUTOINC+1fdc27db84-r0/git/lib/xray/xray_inmemory_log.cc:182:26: error: no member named 'mutex' in namespace 'std' std::lock_guard<std::mutex> L(LogMutex); ~~~~~^ /mnt/a/build/tmp-glibc/work/cortexa7hf-neon-vfpv4-oe-linux-gnueabi/compiler-rt/4.0.0+gitAUTOINC+1fdc27db84-r0/git/lib/xray/xray_inmemory_log.cc:182:33: error: unknown type name 'L' std::lock_guard<std::mutex> L(LogMutex); ^ Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: build libLLVM.soMartin Kelly2017-03-211-6/+6
| | | | | | | It's useful to have a shared library version of LLVM for programs that require it. Signed-off-by: Martin Kelly <mkelly@xevo.com>
* clang/compiler-rt: Fix nativesdk builds break compiler-rt dep for clangKhem Raj2017-03-161-0/+5
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Add clang runtime to dependencies when toolchain is clangKhem Raj2017-03-161-0/+4
| | | | | | A step towards unplugging gcc runtime Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Remove INHIBIT_DEFAULT_DEPSKhem Raj2017-03-161-3/+1
| | | | | | | Depend on clang for build runtime libs Build gobject-introspection for armv7 using gcc Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang/compiler-rt: Use compiler-rt and libcxx as default runtime for target ↵Khem Raj2017-03-161-2/+2
| | | | | | | | clang One can still use -stdlib=libstdc++ and -rtlib=libgcc to use gcc runtime Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Fix install locations where clang looks for itKhem Raj2017-03-091-5/+6
| | | | | | | | | | This fixes building with clang using compiler-rt on target clang++ --rtlib compiler-rt --stdlib libc++ -lunwind hello.cpp would compile and run on target Signed-off-by: Khem Raj <raj.khem@gmail.com>