summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang/common.inc
Commit message (Collapse)AuthorAgeFilesLines
* openmp: Move the openmp patch to common clangKhem Raj2022-02-101-0/+1
| | | | | | | This ensures the common llvm sources are identical and can be re-used. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Backport missing include fix from upstream.Raphael Kubo da Costa2021-11-011-0/+1
| | | | | | | | This affects LLVM < 12, so backport directly to dunfell. This adds a missing include that was breaking the build with recent libstdc++ releases on the host system (versions 11 and above). Signed-off-by: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
* Compiler-rt: Backport clang 12 implementation to be able to build libtsanFlorian Wühr2021-09-221-1/+1
|
* llvm: Do not crash on weird `bitcast <1 x i8*> to i8*`Naveen Saini2020-11-041-0/+1
| | | | | | | | | 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>
* clang: Enable C functions for cl_khr_mipmap_image_write extensionNaveen Saini2020-10-191-0/+1
| | | | | | This patch is already merged in llvm-11. Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
* clang: honor --dyld-prefix when searching for dynamic linkerOleksandr Ocheretnyi2020-07-021-0/+1
| | | | | | | | | | * Commit 1ce5b0090e18 ("clang: Search for dynamic linker.") does not honor --dyld-prefix option, so it fails to find the linker when --dyld- prefix is used for usrmerge. Add DyldPrefix when searching for dynamic linker. Fixes: 1ce5b0090e18 ("clang: Search for dynamic linker.") Signed-off-by: Oleksandr Ocheretnyi <oocheret@cisco.com>
* fix build errors when using libLLVMInterpreterAnuj Mittal2020-04-031-0/+1
| | | | | | | | | | | | | | | | | Don't use the full path to libffi and avoid linking to the one from clang's sysroot. Prevents errors like: Log data follows: | DEBUG: Executing shell function do_compile | NOTE: VERBOSE=1 cmake --build /build/build/tmp/work/corei7-64-poky-linux/opencl-clang/10.0.0-r0/build --target all -- | ninja: error: '/build/build/tmp/work/corei7-64-poky-linux/clang/10.0.0-r0/recipe-sysroot/usr/lib/libffi.so', needed by 'libopencl-clang.so.10', missing and no known rule to make it | WARNING: exit code 1 from a shell command. | ERROR: Execution of '/build/build/tmp/work/corei7-64-poky-linux/opencl-clang/10.0.0-r0/temp/run.do_compile.72389' failed with exit code 1: | ninja: error: '/build/build/tmp/work/corei7-64-poky-linux/clang/10.0.0-r0/recipe-sysroot/usr/lib/libffi.so', needed by 'libopencl-clang.so.10', missing and no known rule to make it | WARNING: exit code 1 from a shell command. | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* clang: Fix default resources directory when cross compilingJim Broadus2020-03-281-0/+1
| | | | | | | | | | | | By default, clang looks for resourses relative to the binary location: ${location}/../lib/clang/${version}/ However, the default bindir defined in cross.bbclass is a subdirectory of bin, so clang forms a directory that looks like /usr/bin/lib/clang/10.0.0/ Apply a patch to use ${location}/../../lib/clang/${version} if the directory name of ${location}/.. is "bin". Signed-off-by: Jim Broadus <jbroadus@xevo.com>
* clang: Update to latest 10.xKhem Raj2020-03-051-1/+0
| | | | | | Drop -lz patch Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest 10.x releaseKhem Raj2020-03-041-3/+3
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade clang to 10.x release (RC2)Khem Raj2020-02-211-22/+16
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang,llvm: cmake: Fix configure for packages using find_package()Ovidiu Panait2020-02-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Currently, when a package (i.e. bcc [https://github.com/iovisor/bcc.git]) that depends on LLVM/Clang tries to run cmake find_package() during do_configure, it will fail with a similar error: | The imported target "llvm-tblgen" references the file | ".../recipe-sysroot/usr/bin/llvm-tblgen" | | but this file does not exist. Possible reasons include: | * The file was deleted, renamed, or moved to another location. | * An install or uninstall procedure did not complete successfully. | * The installation package was faulty and contained | ".../recipe-sysroot/usr/lib/cmake/LLVMExports.cmake" | but not all the files it references. This is due to the fact that currently the exported cmake scripts look for target binaries in sysroot. Work around this by not exporting the target binaries in Exports-* cmake files. Upstream-Status: Innapropriate [oe-specific] Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
* clang: Search for dynamic linker.Daniel McGregor2020-01-201-1/+1
| | | | | | | Use the sysroot for a hint as to where to find the dynamic linker. This allows multilib distros to use the appropriate runtime linker path. Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
* libcxx: Correct link failure due to missing __divti3Jeremy Puhlman2020-01-161-0/+1
| | | | | | Add libgcc as defined by $CC to link of libc++. Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
* compiler-rt: Fix build with glibc 2.31Khem Raj2019-12-231-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Use cmake variable for libdlKhem Raj2019-12-111-0/+1
| | | | | | | | This ensures that clang can link with libdl on platforms where needed Fixes issue #241 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Fix multilib clang compile failing if lib is in the toolchain pathMichael Davis2019-12-051-0/+1
| | | | | Signed-off-by: Michael Davis <michael.davis@essvote.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Uodate to 9.0.1-rc1Khem Raj2019-11-231-5/+4
| | | | | | | Drop 0021-Driver-Prioritize-SYSROOT-usr-include-over-RESOURCE_.patch as its already applied upstream Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm: Check for built-in atomic<double> during configureKhem Raj2019-11-181-0/+1
| | | | | | | | | This helps in deciding on linking libatomic, therefore its important to check for atomic<double> because on x86, clang decides to not use built-in whereas gcc does, so clangd e.g. links ok when using gcc but fails when using clang with gcc-runtime on x86 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Revert "clangd: Always link with libatomic"Khem Raj2019-11-181-1/+0
| | | | | | This reverts commit 2fdb19c4f8b025d4465d78cdf1bc05d786f5e087. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clangd: Always link with libatomicKhem Raj2019-11-181-0/+1
| | | | | | Since it uses double atomics which are not available yet as intrinsics Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Fix openmp build on armv7veKhem Raj2019-10-061-3/+4
| | | | | | Refresh patches on latest release/9.x branch Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: pass PYTHON_EXECUTABLE to target as wellAnuj Mittal2019-09-181-0/+1
| | | | | | | Also make sure that we pass this value on to an internal native build that tries to detect python while cross-compiling. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
* clang: Let cmake figure out python version for nativeKhem Raj2019-09-121-1/+0
| | | | | | supply python3 for nativesdk and target recipes Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Add support for RISCV floating point registers in inlineasmKhem Raj2019-09-121-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Backport a fix to re-arrange header include order on muslKhem Raj2019-09-091-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Define PYTHON_LIBRARY and PYTHON_INCLUDE_DIRKhem Raj2019-09-071-0/+1
| | | | | | | | - Update at the same time to latest on 9.x - Update patches to drop patch numbers - Drop lldb from search python interpreter Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 9.0-rc3Khem Raj2019-09-021-1/+1
| | | | | | | Default to ssp and pie irrespective of GCCPIE this lets us build one clang for all Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 9.xKhem Raj2019-08-271-1/+0
| | | | | | Drop upstreamed patch to fix libcxx build on mips Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to latest on 9.x releaseKhem Raj2019-08-261-0/+1
| | | | | | Fix libcxx build on mips Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to 9.x-rcXKhem Raj2019-08-121-21/+21
| | | | | | | 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>
* clang: Implement -fmacro-prefix-mapKhem Raj2019-02-151-0/+2
| | | | | | | 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: Refresh patches and use static libunwind.a during default linkKhem Raj2019-02-071-18/+18
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm: Add .dword support for aarch64 MCKhem Raj2019-01-311-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Add libunwind automatically to link cmdline when using compiler-rtKhem Raj2019-01-261-0/+1
| | | | | | | This makes compile-rt equal to libgcc which has both builtins+unwind as well Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Switch to upcoming 8.0 release branchKhem Raj2019-01-191-48/+16
| | | | | | | | | | | | | | | 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-161-1/+1
| | | | | | | 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>
* recipes: Rework llvm/clang/compiler-rt/libcxx/lldb recipesKhem Raj2018-12-271-13/+50
| | | | | | | | | | | | | | 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>
* clang: Default to ssp and pie codegen when GCCPIE is setKhem Raj2018-12-091-1/+1
| | | | | | | | | 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: 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>
* clang: Fix driver segfault with very long commandlineKhem Raj2018-05-201-0/+1
| | | | | | This is triggerred with webkit linking commands Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Use python2 for scan-viewKhem Raj2018-05-151-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Do not link with -lssp when using -fstack-protectorKhem Raj2018-04-211-1/+1
| | | | | | This is provided by libc both (musl and glibc) Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Upgrade to upcoming 6.0 release branchesKhem Raj2018-01-271-5/+2
| | | | | | | clang 6.0 is upcoming release, its already in RC phases Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang,llvm,lld: Update to latest on release_50Khem Raj2017-10-051-1/+0
| | | | | | Drop upstreamed patches Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Switch c++ default to gnu++14 standardKhem Raj2017-09-241-0/+1
| | | | | | | | | | | | | | | Using cmdline options -std doesnt always work e.g. boost where it uses c++ driver (clang++) to invoke compilation but then passes '-x c' to choose the language for compilation Which ends in errors like below error: invalid argument '-std=c++14' not allowed with 'C' Therefore change the defaults in driver itself to use gnu++14 which is default with g++ from gcc7+ too. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang/llvm: Backport aarch64 fix for bug 34674Khem Raj2017-09-211-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm: Fix wrong code generation when floor() libm function is calledKhem Raj2017-09-191-0/+1
| | | | | | | see https://reviews.llvm.org/D38050 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Fix build on ARM due to libcxxabi not finding libunwind sourcesKhem Raj2017-08-271-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Fix dynamic linker on x86/muslKhem Raj2017-08-161-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>