summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* libunwind: Implement unw_backtraceKhem Raj2023-09-082-0/+56
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit d45403baedd7ae7755a02cfe0205000b760167bd)
* libunwind: Install headers and pkgconfig fileKhem Raj2023-09-083-0/+21
| | | | | | | | This ensures it can replace nongnu libunwind Use it only when selecting RUNTIME = "llvm" Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit c48de926ac54802df7e1e4b7f91caa4fa4ef45b1)
* libc-bench: It works fine with new way of choosing llvm runtimeKhem Raj2023-09-081-3/+0
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 55978074f349330367ffbbf991e3287141f8fe4d)
* clang.bbclass: Limit using clang to target recipes onlyKhem Raj2023-09-081-9/+9
| | | | | | | | since toolchain-clang maybe available for native as well now, it means we have to ensure we do not use it for native recipes _yet_ Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 95b2e77c088aacaae58aa9157fc7b7bde82527c8)
* compiler-rt-native: Fix build with clangKhem Raj2023-09-081-0/+10
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 9c8347351565ba4ea0b31e92cf55b29811372285)
* nss: Pass options to select runtime for native partsKhem Raj2023-09-081-1/+1
| | | | | | | | Since clang maybe configured to use llvm runtime, we need to ensure to use gnu runtime in native builds Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 563e11548bfe95444d447e058001d3d1da5fe8e8)
* layer.conf: Prefer llvm libunwind when RUNTIME = "llvm"Khem Raj2023-09-081-0/+1
| | | | | | | Avoids conflicts with libunwind recipe from OE-Core Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 5be1042c67063354217154e3c35ed83408d916ce)
* clang.bbclass: Adjust for clang default changesKhem Raj2023-09-081-7/+11
| | | | | | | | | | | | | | | | Now that clang can pass right options automatically when RUNTIME = "llvm", adjust the variables e.g. COMPILER_RT/UNWINDLIB/LIBCPLUSPLUS are no more required to be defaulted Disable enforcing gcc runtime for packages using gcc as its no longer needed here but is taken care by RUNTIME variable as an aside it also helps in building native and nativesdk llvm runtimes Compute right dependencies based on selected RUNTIME along with COMPILER_RT/UNWINDLIB/LIBCPLUSPLUS variables Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit dc5e04e5819a5e7384ae48f1740ac82970a80b8f)
* libcxx: Build undwinder when RUNTIME = "llvm"Khem Raj2023-09-081-1/+5
| | | | | | | | ensure that libcxx can be built when RUNTIME = "llvm" as it might need to pass some cmake compiler tests Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit a0a318157ca0555b0d6e20028dcb7e3e3f3c08c6)
* compiler-rt-sanitizers: Use packageconfig to use static libcxxKhem Raj2023-09-081-6/+3
| | | | | | | | | | | | | | sanitizers can link libc++/libc++abi statically or dynamically, we default to use dynamic version but leave the option to enable static linking if so needed Use virtual/crypt to represent crypt implementation which becomes libc independent Fix dependencies for native recipes Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit f4bb299c409128801e68c30187381fadeb0a451d)
* compiler-rt: Use gcc runtime to bootstrapKhem Raj2023-09-081-3/+7
| | | | | | | | | | | | | | | while compiler-rt may not use any of these libraries, but the cmake environment pokes for working compiler, linker and other tools, this ensures that it can build when RUNTIME = "llvm" and also RUNTIME = "gnu" Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 7f431875e4edc2a11a9881714e4845efeee54f77) Conflicts: - recipes-devtools/clang/compiler-rt_git.bb: Commit 93552c79eed5daa44a24bf4b7a063a2ade739e97 had already backported parts of this commit.
* clang: Default to compiler-rt/libcxx/libunwind when RUNTIME = "llvm"Khem Raj2023-09-081-5/+9
| | | | | | | | | | | | | This ensures that compiler defaults are defaulting to llvm provided c/c++ runtimes which includes c-runtime, c++runtime, unwinder and omp runtime, current approach is to inject commandline options but it does not get passed in all cases and a lot of smaller/big patches are used to make such package recipes behave If RUNTIME = "gnu" then defaults stay to use gcc runtime as it is Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit e4edc914cd17d31c1c55733db942e3d5da3b0b56)
* scan-build.bbclass: Fix typoKhem Raj2023-09-081-1/+1
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit da92b363e8b57c506250cd677436d1a44b163c98)
* libcxx: Build libunwind shared lib when enabledKhem Raj2023-09-081-10/+7
| | | | | | | | Use compile-rt consistently across when building libc++ and libc++abi and libunwind Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 78acb4ae02352d543b0343b2dba411dc521acd0a)
* compiler-rt-sanitizers: Do not package orc support libKhem Raj2023-09-081-0/+2
| | | | | | | Its already shipped with compile-rt recipe Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit c5c59a9a6a80bb54067ed1400f814fcfc3f428aa)
* lldb: Do not build for mips as wellKhem Raj2023-09-081-4/+7
| | | | | | | | lldb-server is not fully ported for mips yet see https://reviews.llvm.org/D102872 Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 1a90a808e913003ccbbd5ab9b1fcb0a0995d620c)
* compiler-rt-sanitizers: Fix build on mipsKhem Raj2023-09-082-0/+30
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 85c1247d641e8f3286151cf77c8a888955a4fbb1)
* compiler-rt-sanitizers: Limit to buildable arch/libc combinationsKhem Raj2023-09-081-0/+6
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 6a442a8a3b6b898c90ae1e25216810cf0022e8ad)
* compiler-rt-sanitizers: Link with static C++ runtime when availableKhem Raj2023-09-082-3/+3
| | | | | | | This fixes build on ARM Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 241e7e50d394795822beb04869fa540026ebf0cd)
* clang: Fix x86 tuple for include search pathsKhem Raj2023-09-082-0/+26
| | | | | | | | | | | | | This ensures that search path for c++ headers is using right directory structure as per Openembedded gcc and sysroot install e.g. ignoring nonexistent directory "/mnt/b/yoe/master/build/tmp/work/core2-32-yoe-linux-musl/compiler-rt/13.0.0-r0/recipe-sysroot/usr/lib/i686-yoe-linux-musl/11.1.0/../../../include/ c++/11.1.0/i386-linux-gnu" Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 6ecc0989f152811b8e042d0eb0c94db24c023543)
* compiler-rt: Fix sanitizer build on musl/x86_64Khem Raj2023-09-082-0/+69
| | | | | | | backtrace APIs are glibc specific so do not use them Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 0f3c6b54bf61ec9aabcb2e6ef52ee78e795194c5)
* libclc: Pass -cl-no-stdinc to compiler and assemblerKhem Raj2023-09-081-0/+1
| | | | | | | | | | | | | libclc uses clang CLC preprocessor on .ll files, llvm/clang-13 started including clc declarations by default (clang cf3ef15a6ec5e5b45c6c54e8fbe3769255e815ce), thus corrupting any .ll assembly files that are used by libclc. Inclusion of the default declarations can be turned off using a cmdline switch but that remains to be implemented in the libclc build system. manually adding '-cl-no-stdinc' should work as a workaround. Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit d692c0338fe60cdbb3025dcedbb05ca466335650)
* spirv-llvm-translator: Upgrade to 13.0.0/trunkKhem Raj2023-09-083-63/+3
| | | | | | | This is in sync with clang trunk (upcoming 13.0.0) release Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 79dc9a07e919bbcadb137a9d4cb0f857a672d67e)
* openmp: Fix building amdgcn filesKhem Raj2023-09-081-3/+10
| | | | | | | License name should be LICENSE.TXT not LICENSE.txt Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 07357fd3372866445aa9dd07654849b9b3d0c3d1)
* clang: Upgrade to trunk/13.0 future seriesKhem Raj2023-09-0837-716/+206
| | | | | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 76e37fafa29e9b2097eb823537b17d6cc638c1d5) Conflicts: - recipes-devtools/clang/common.inc: caused by 3880a395f870ecd8da73d2de1e2b88a855df2ef0, the patches have been kept. The patch introduced in fdb936e80b30f40cbf7ef9a8e124b58eec95f45c is part of LLVM 13 so it has been removed.
* libunwind: Hide when llvm runtime is usedKhem Raj2023-09-081-0/+3
| | | | | | | We want to use llvm libunwind implementation when RUNTIME = "llvm" Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit a3604860941ffa9c5ef9a254717651fe9f8c586e)
* mesa: Do not StackAlignmentOverride on llvm >= 13Khem Raj2023-09-082-3/+20
| | | | | | | | This has been removed see https://reviews.llvm.org/D103048 Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit c37942613e70c49c9fce3247c1427d0a1c10ad21)
* ghostscript: Fix build when using libc++Khem Raj2023-09-081-0/+7
| | | | | | | RUNTIME=llvm means we use libc++ instead of libstdc++ among other things Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 933795217f9142c246c359f92e8320516e5c66a5)
* compiler-rt-sanitizers: allow tsan to be built since clang 12 works byFlorian Wühr2023-05-162-41/+0
| | | | default
* clang.bbclass: Replace mcpu with mtune to match dunfellCaner Altinbasak2023-02-231-1/+1
| | | | | | | | dunfell meta/conf/machine/include/tune-cortexa57-cortexa53.inc defines mtune, not, mcpu. clang.bbclass attempts to remove these optimisations but it fails due to mismatch. Signed-off-by: Caner Altinbasak <cal@brightsign.biz>
* Backport fix for no matching constructorRandy MacLeod2023-01-172-0/+380
| | | | | | | | | | | | | | Fixes: ../../chrome/common/extensions/chrome_manifest_url_handlers.cc:101:7: error: no matching constructor for initialization of 'std::map<const char *, std::reference_wrapper<const absl::optionalstd::string>>' (aka 'map<const char , reference_wrapper<const optional<basic_string>>>') std::map<const char, as seen with chromium-109: https://github.com/OSSystems/meta-browser/issues/674 Thanks to Raphael Kubo da Costa for finding the commit to be backported! Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
* Update Readme.md - fix typofwuehr952022-10-131-1/+1
|
* nativesdk-clang: Fix build on hosts with older ncursesKhem Raj2022-09-284-0/+378
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Fix patch fuzzFlorian Wühr2022-08-304-23/+19
|
* Fix mesa build with newer clang (port fixes from mesa)Florian Wühr2022-08-305-0/+142
|
* clang: Backport libcxx-native build and dependency fixes from main.Chris Wulff2022-07-052-7/+22
| | | | Signed-off-by: Chris Wulff <chris.wulff@biamp.com>
* Merge pull request #565 from kraj/kraj/clang12Khem Raj2022-02-114-2/+28
|\ | | | | merge dunfell branch into clang12
| * Merge remote-tracking branch 'upstream/dunfell' into kraj/clang12kraj/clang12Khem Raj2022-02-110-0/+0
| |\
| | * fix openmp patch filenameAlexander Thoma2022-02-111-0/+0
| | |
| * | Merge remote-tracking branch 'upstream/dunfell' into kraj/clang12Khem Raj2022-02-102-26/+1
| |\|
| | * openmp: Move the openmp patch to common clangKhem Raj2022-02-102-4/+1
| | | | | | | | | | | | | | | | | | | | | This ensures the common llvm sources are identical and can be re-used. Signed-off-by: Khem Raj <raj.khem@gmail.com>
| * | Drop 0029-OpenMP-link-fix.patchKhem Raj2022-02-101-4/+0
| | | | | | | | | | | | | | | | | | This is not needed with clang12 Signed-off-by: Khem Raj <raj.khem@gmail.com>
| * | Merge remote-tracking branch 'upstream/dunfell' into kraj/clang12Khem Raj2022-02-102-0/+30
| |\|
| | * OpenMP Link fixJoel Winarske2022-02-102-0/+30
| | | | | | | | | | | | | | | | | | -fixes "version node not found for symbol omp_get_num_places_@@VERSION" Signed-off-by: Joel Winarske <joel.winarske@gmail.com>
| * | Merge remote-tracking branch 'upstream/dunfell' into clang12Khem Raj2022-02-045-3/+28
|/| | | |/
| * clang: Backport missing include fix from upstream.Raphael Kubo da Costa2021-11-012-0/+29
| | | | | | | | | | | | | | | | 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-223-41/+55
| |
| * chromium,gn: Fix typo in depends specKhem Raj2021-08-133-3/+3
| | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
| * chromium,gn: Do not use runtime-llvm to remove libc++ native depsKhem Raj2021-08-133-9/+9
| | | | | | | | | | | | This override may not exist in old releases Signed-off-by: Khem Raj <raj.khem@gmail.com>
| * 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>