summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* 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-313-0/+3
| | | | | | 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>
* clang: Update to tip of release/8.xKhem Raj2019-01-291-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: link with libgcc_eh.a when using compiler-rtKhem Raj2019-01-271-6/+8
| | | | | | | | | | compiler-rt is not a full replacement for libgcc, it provides the built-ins so we are left with EH and unwinding support to be had from elsewhere, we could use LLVM linunwind but that depends on libpthread so it will end up pulling too many libraries for meantime link with libgcc_eh.a when --rtlib=compiler-rt Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Use -l:lib method to specify libunwind.aKhem Raj2019-01-261-5/+10
| | | | | | This makes sure that linker treats it as a library and not object Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Add libunwind automatically to link cmdline when using compiler-rtKhem Raj2019-01-262-0/+24
| | | | | | | This makes compile-rt equal to libgcc which has both builtins+unwind as well Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt,libcxx: Remove --rtlib=compiler-rtKhem Raj2019-01-262-0/+2
| | | | | | This avoids catch-22 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on release/8.x branchKhem Raj2019-01-261-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openmp: Do not remove deps on compiler-rt and libcxxKhem Raj2019-01-241-3/+0
| | | | | | This builds ok with them now Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx,compiler-rt: Append to CXX along with TARGET_CXXFLAGS to carry ↵Khem Raj2019-01-242-4/+5
| | | | | | | | -stdlib flag Since TARGET_CXXFLAGS does not get passed into all packages Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Use compiler-rt for C runtimeKhem Raj2019-01-241-1/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update license checksumsKhem Raj2019-01-194-7/+7
| | | | | | The only change is update to the year in license files Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Switch to upcoming 8.0 release branchKhem Raj2019-01-1923-634/+263
| | | | | | | | | | | | | | | Clang 8.0 is going to be released in Feb-March 2019 so here we switch to release/8.x branch a bit early so we can provide some feedback for release to be good on OE If one needs to use stable 7.0.1 release please use thud branch clang 8.0 does have RISC-V backend, enable it clang: Add building experimental targets e.g. riscv Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm-project: Switch to canonical git mirrorDan McGregor2019-01-163-6/+6
| | | | | | | LLVM now has an official git monorepo mirror. It will likely become the canonical upstream in the near future. Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
* 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>
* clang,nativesdk-packagegroup-sdk-host: Recognise risc-vKhem Raj2018-12-272-3/+1
| | | | | | | This helps build SDKs for risc-v when meta-clang is in layer mix even though clang for risc-v may not fully work yet 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>
* nativesdk-clang: Rely on runtime build via libcxx and compiler-rt recipesKhem Raj2018-12-271-2/+0
| | | | | | | | This was trying to build runtime during build but we already have recipes for libcxx and compiler-rt to do that, unless we merge them into clang recipe, we need to keep using them to provide nativesdk clang runtime Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Rework llvm/clang/compiler-rt/libcxx/lldb recipesKhem Raj2018-12-2720-150/+154
| | | | | | | | | | | | | | 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>
* lld: DeleteKhem Raj2018-12-271-52/+0
| | | | | | lld is being merged into clang recipe Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Update clang/llvm to latest 7.0Khem Raj2018-12-261-2/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes-devtools/clang: Drop virtual/libc-for-gccAníbal Limón2018-12-262-2/+2
| | | | | | | | No longer required see, http://git.openembedded.org/openembedded-core/commit/?id=122217b421f749b5fef52bea44ad6e04bc8f8d3a Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
* clang-cross: symlink cross versions of lto toolsKhem Raj2018-12-091-1/+6
| | | | | | | | | | llvm-ar llvm-ranlib and llvm-nm are often used during LTO if enabled. These tools are currently not being found and some build systems e.g. cmake disables them which then affects -flto with clang. Enabling cross versions of them makes sure they get detected properly during cross compile Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Default to ssp and pie codegen when GCCPIE is setKhem Raj2018-12-092-1/+285
| | | | | | | | | This ensures that clang generates PIE+SSP code by default, this makes sure that packages which do not make this distinction compile properly as passing -fPIE and -pie could be not working well for their build systems Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Update to clang 7.0.1Khem Raj2018-12-091-7/+7
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm,lld: Update to latest on release_70Khem Raj2018-09-131-2/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm/clang/lld: Update to 7.0.0-rc3Khem Raj2018-09-101-3/+3
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Revert "compiler-rt: Use pre-computed size of struct ustat for Linux"Khem Raj2018-09-092-65/+0
| | | | This reverts commit 9a0bd29eac2be5f88e3e198929181d3591dd7ec7.
* lld: Do not use libcxx for native and nativesdk variantsKhem Raj2018-09-091-2/+4
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Disable generating libcxx.so as script for native and nativesdk caseKhem Raj2018-09-091-1/+3
| | | | | | | | This confuses the libcxx build system and it tries to edit rpaths in .so files and fails miserably on libcxx.so if it is a linker script Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Mark incompatible for riscv64Khem Raj2018-09-091-0/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* disable linunwind for risv64Khem Raj2018-09-091-0/+1
| | | | | | RISC-V support in clang is missing for now Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Disable llvm libunwind on ppcKhem Raj2018-09-091-1/+2
| | | | | | | | It fails to build libunwind/src/UnwindRegistersSave.S:561: Error: unrecognized opcode: `extern' Signed-off-by: Khem Raj <raj.khem@gmail.com>
* 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>
* clang: Provide <prefix>-llvm-profdate in cross crosssdk and cross-canadian clangKhem Raj2018-09-093-3/+6
| | | | 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-0924-193/+207
| | | | | | | | | | | | | | | | | - 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-092-0/+65
| | | | | | | | | | | | | | | <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>
* libcxx: Add libunwind to PACKAGECONFIGMichael Davis2018-07-101-16/+16
| | | | | | | Allow libunwind to be turned off and on using PACKAGECONFIG Default to ON Signed-off-by: Michael Davis <michael.davis@essvote.com>
* llvm/clang/compiler-rt/libcxx: Update to latest release_60 branchKhem Raj2018-07-061-4/+4
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Fix sigsegv of llvm-config on the targetRicardo Ribalda Delgado2018-05-301-0/+3
| | | | | | | llvm-config is, by default, broken by the SSTATE_SCAN_CMD. This patch removes llvm-config from SSTATE_SCAN_FILES. Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
* clang: Add package config for shared-libsMichael Davis2018-05-291-3/+4
| | | | | | Allow shared or static libs to be selected by package config. Default to shared. Signed-off-by: Michael Davis <michael.davis@essvote.com>
* clang: Fix driver segfault with very long commandlineKhem Raj2018-05-202-0/+57
| | | | | | This is triggerred with webkit linking commands Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang/llvm: Update to latest on release_60Khem Raj2018-05-171-2/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: include staticdev into SDKKhem Raj2018-05-151-0/+2
| | | | | | This helps statically linking C++ programs when building with clang Signed-off-by: Khem Raj <raj.khem@gmail.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>
* clang: Use python2 for scan-viewKhem Raj2018-05-152-0/+28
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>