summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang/libcxx_git.bb
Commit message (Collapse)AuthorAgeFilesLines
* libcxx: Facilitate building without llvm libunwindKhem Raj2019-09-091-10/+15
| | | | | | | | | | | | | | | | | | | | | | | when llvm unwind library is disabled, build was not picking up libgcc automatically since we still use, compiler-rt for C runtime, therefore introduce it via special CMAKE_SHARED_LINKER_FLAGS in packageconfig Bundle static unwind library into libcxx-abi library and bundle libcxx-abi.a into libc++.a this helps in just specifying lc++ and no other flags are needed. Also bundle static libunwind and cxx-abi but not into shared libc++, this would avoid adding them explicitly on linker cmdline in packages when doing static linking Use PREFERRED_PROVIDER_libunwind to determine if unwind packageconfig should be enabled or not Pass -fno-exceptions on arm, otherwise it links in unwinding routines which it expects to link from libgcc_s, we really don't need this when doing cmake checks so disable exceptions during cmake checks Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Add ^libunwind-locale-.* to PACKAGES_DYNAMICKhem Raj2019-09-091-0/+2
| | | | | | | this should help when libcxx is preferred to provide libunwind and help masking the packages coming from libunwind recipe Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Fix build on ppcKhem Raj2019-09-021-0/+5
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Always use clang to compile libcxxKhem Raj2019-08-261-0/+2
| | | | | | It really does not build with gcc dont force it Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Do not hardcode llvm ar/ranlib/nmKhem Raj2019-08-261-3/+3
| | | | | | This helps in building with gcc Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Link with libgcc when using gcc to buildKhem Raj2019-08-241-0/+2
| | | | | | Fixes build errors due to missing unwind symbols Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Disable llvm libunwind when using gcc as system compilerKhem Raj2019-08-201-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: RProvide rest of libunwind packagesKhem Raj2019-08-191-2/+3
| | | | | | | This ensures that llvm libunwind is used always, even for sdks Move depends above as per recipe styleguides Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Add libunwind to PROVIDES not only RPROVIDES.Piotr Tworek2019-08-171-1/+1
| | | | | | | | | | | | Without this bitbake will still pull standard libunwind package when building recipes depending on libunwind. If such recipe also happens to pull libcxx the build will fail when assembling the sysroot because both libcxx and libunwind provide libunwind.so. This problem has been observed when building libstd-rs from meta-rust layer agains musl libc. Signed-off-by: Piotr Tworek <tworaz@tworaz.net>
* libcxx: Provide libunwind and fix risv supportKhem Raj2019-08-121-3/+17
| | | | | | Use llvm libunwind as default for clang toolchain Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx,compiler-rt: Add --unwindlib=libunwind to COMPILER_RTKhem Raj2019-08-121-3/+2
| | | | | | | 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/+3
| | | | | | | 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: Enable libunwind on mipsKhem Raj2019-05-261-1/+0
| | | | | | This now builds for mips so lets enable it Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx, compiler-rt: Use forcevariable to specify TOOLCHAIN overrideKhem Raj2019-03-121-1/+2
| | | | | | | 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-4/+5
| | | | | | | | | | - 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: Disable standalone buildKhem Raj2019-02-091-0/+4
| | | | | | | | | | | 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>
* libcxx: Make libunwind as static libraryKhem Raj2019-02-071-18/+14
| | | | 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-1/+2
| | | | | | | | -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-191-3/+3
| | | | | | The only change is update to the year in license files Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Rework llvm/clang/compiler-rt/libcxx/lldb recipesKhem Raj2018-12-271-22/+8
| | | | | | | | | | | | | | 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>
* 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>
* 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>
* recipes: Upgrade to clang 7.0.0 Release (rc2)Khem Raj2018-09-091-0/+2
| | | | | | | | | | | | | | | | | - 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>
* 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>
* 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>
* recipes: Drop setting NINJA_STATUSKhem Raj2018-04-191-4/+4
| | | | | | This is no longer needed Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm/libunwind: Fix install targetRobin Lee2018-03-031-1/+1
| | | | Signed-off-by: Robin Lee <cheeselee@fedoraproject>
* libcxx: Add settings to build with libcxx as default C++ standard libraryRobin Lee2018-03-031-0/+1
| | | | Signed-off-by: Robin Lee <cheeselee@fedoraproject>
* libcxx: Disable libunwind on all mipsKhem Raj2017-09-181-6/+11
| | | | | | llvm libunwind is still not ported to mips Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Divide compile step into smaller stepsKhem Raj2017-09-141-1/+3
| | | | | | | | There seems to be some race between libcxx and libcxx-abi resulting in FAILED: lib/libc++.so.1.0 x86_64-bec-linux-musl-ld: cannot find -lc++abi Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Fix build on ARM due to libcxxabi not finding libunwind sourcesKhem Raj2017-08-271-2/+3
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm-libunwind: DeleteKhem Raj2017-07-311-6/+14
| | | | | | build llvm libunwind along with libcxx Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Merge libcxxabi needs into libcxxKhem Raj2017-07-311-10/+13
| | | | | | | | | This is preferred way of building libc++ and it also means we do not need musl specific tweaks since top level build from llvm already know musl and make right choices Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Use ninja generator on top of cmakeKhem Raj2017-07-301-1/+10
| | | | | | ninja is in OE-Core now Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang/llvm: Move to upcoming 5.0.0 ( trunk ) releaseKhem Raj2017-05-221-11/+16
| | | | 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>
* libcxx: Add dependency on native pythonKhem Raj2017-03-081-1/+1
| | | | | | | | Fixes | /bin/sh: PYTHON_EXECUTABLE-NOTFOUND: command not found Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx,libcxxabi: Update LIC_FILES_CHKSUMKhem Raj2017-02-091-1/+1
| | | | | | Update year to 2017 in text Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Fix SRCREV_FOTMAT clashes due to same substr in namesKhem Raj2016-07-131-2/+2
| | | | | | | | | | | | | | | | When we use same substr in two SRC_URI name= arguments e.g. name=libcxx and name=libcxxabi then bitbake replaces the substring in SRCREV_FORMAT in literal form like SRCREV_FORMAT = "xxx_xxxabi" which is not correct and it confuses the workdir completely see lib/bb/fetch2/__init__.py#L772 where bitbake is using replace() python API which will replace the match and not exact match Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang/libs: Update LIC_FILES_CHKSUM md5 sumsKhem Raj2016-05-201-1/+1
| | | | | | Update copyright year to 2016 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang-runtime: Enable shared librariesKhem Raj2016-04-051-2/+2
| | | | | | | | package libcxxabi-dev and compiler-rt-staticdev into packagegroup-core-standalone-sdk-target so it gets into SDK Signed-off-by: Khem Raj <raj.khem@gmail.com>
* packagegroup-core-standalone-sdk-target: Add clang runtime libsKhem Raj2016-04-041-0/+2
| | | | | | | ALLOW_EMPTY is added so packaging can succeed the files are all static libs Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx: Remove -ffreestanding from compiler flagsKhem Raj2016-04-041-2/+2
| | | | | | | | we are targetting linux so its hosted Correct dual lincese logic Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx,libcxxabi: Use cmake knobs for muslKhem Raj2016-03-151-5/+3
| | | | | | | libcxx already has support for musl, enable that instead of patching code Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libcxx,libcxxabi: Fix build on muslKhem Raj2016-03-151-0/+4
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rename 'CLANG_GIT' 'CLANG_GIT_PROTOCOL' to 'LLVM_GIT' 'LLVM_GIT_PROTOCOL'Yi Qingliang2016-03-011-3/+3
| | | | Signed-off-by: Yi Qingliang <niqingliang2003@gmail.com>