summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang/llvm-project-source.inc
Commit message (Collapse)AuthorAgeFilesLines
* clang: Delete recipesKhem Raj2025-05-051-99/+0
| | | | | | They are in core layer now Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Fix incorrect task dependencies from ${B}Khem Raj2024-05-261-0/+2
| | | | | | | | | | | | | Some tasks may reference ${B} for llvm-source which in general would not exist. It has dependencies on HOST_SYS and TARGET_SYS which are not appropriate for a shared recipe like llvm-source. This causes problems for the archiver and multiconfigs in particlar. Set B to something else to avoid these task hash issues. Fixes issues #885 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang-common: Rename task add_distro_vendor -> do_preconfigureKhem Raj2024-05-261-3/+4
| | | | | | | | Move the dependency anchor to do_preconfigure instead of do_patch since do_patch may get deleted when using devtool etc. so it helps with working on developing clang using devtool Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm-project-source: Remove "MULTILIBS" from do_patch dependeciesKhem Raj2023-08-191-1/+1
| | | | | | | MULTILIBS maybe defined by distros/projects and in some cases not, this would result in rebuilding clang-native for no reason. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Update to 16.0.0Khem Raj2023-03-201-2/+2
| | | | | | | | Changes are described here [1] [1] https://discourse.llvm.org/t/llvm-16-0-0-release/69326 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm-project-source: fix create-spdx handlingKonrad Weihmann2023-01-161-0/+2
| | | | | | | | as the recipe populates the shared source tree as part of do_patch, but create-spdx does only wait for do_unpack. Add an explicit dependency to wait to avoid race conditions Signed-off-by: Konrad Weihmann <kweihmann@witekio.com>
* llvm-project-source: Ensure deploy_source_date_epoch sstate hash doesn't changeKhem Raj2023-01-111-1/+7
| | | | | | | if machines are switched, do_deploy_source_date_epoch would re-run as the stamps are tune specific Signed-off-by: Khem Raj <raj.khem@gmail.com>
* llvm-project-source: Emit all default MULTILIB_GLOBAL_VARIANTSKhem Raj2022-03-181-2/+3
| | | | | | | | | | This ensures that signature of do_patch does not change between multilib and non-multilib builds of clang-native, this essentially hardcodes the multilib variants to lib32 lib64 libx32 which is 99.9% usecase, if you fall into 0.1% then go ahead and modify MULTILIB_VARIANTS in a bbappend file and it will be fine. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: for x86_64, correct GCC install search path for OpenEmbedded HostChangqing Li2021-12-091-0/+31
| | | | | | | | | | | | | | | | | | | Build on OpenEmbedded Host, compiler-rt-native do_configure failed with following error: compiler-rt-native/13.0.1-r0/recipe-sysroot-native/usr/bin/clang -target x86_64-linux -isystem/path/to/x86_64-linux/compiler-rt-native/13.0.1-r0/recipe-sysroot-native/usr/include -O2 -pipe /path/to/compiler-rt-native/13.0.1-r0/recipe-sysroot-native/usr/share/cmake-3.21/Modules/CMakeCCompilerABI.c` | /build/tmp-glibc/hosttools/ld: cannot find crtbeginS.o: No such file or directory | /build/tmp-glibc/hosttools/ld: cannot find -lgcc | /build/tmp-glibc/hosttools/ld: cannot find -lgcc | clang-13: error: linker command failed with exit code 1 (use -v to see invocation) Since OpenEmbedded Host's gcc install path is different with clang's default search form, patch for OpenEmbedded Host's gcc library install path. Signed-off-by: Changqing Li <changqing.li@windriver.com>
* clang: use global multilib variantsDan McGregor2021-09-251-1/+1
| | | | | | | | Using regular multilib variants prevents sharing state between machines with dissimilar multilibs, or non-multilib machines. Since there's no harm in having extra multilib triples, use the full set for all builds. Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
* clang: Add SDK_VENDOR string to CLANG_EXTRA_OE_VENDORSKhem Raj2021-04-261-1/+1
| | | | | | | | | | | | This helps in ensuring that SDK elements are built correctly as well, at present we get right builds for cross/target/native clang but not for nativesdk since it use SDK_VENDOR string for vendor eg. -yoesdk which currently is not added to known OE vendors, as a result nativesdk-clang does not build since crosssdk clang can not find runtime files e.g. libgcc Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Martin Jansa <Martin.Jansa@gmail.com>
* llvm-project-source: Add multilib vendor supportYi Fan Yu2021-04-151-4/+16
| | | | | | | | | | | | | | | | | Generate all possible vendor name that a multilib build could use by using the variable MULTILIB_VARIANTS. ex: {TARGET_VENDOR} {TARGET_VENDOR}mllib32 Fixes build issue when compiling lib32-compiler-rt where clang has issue detecting gcc toolchain. when clang --print-search-dirs: lib32-recipe-sysroot//usr/lib/i686-wrsmllib32-linux should be lib32-recipe-sysroot//usr/lib/i686-wrsmllib32-linux/10.2.0/ Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
* llvm-project-source: Re-implement add_more_target_vendors in pythonKhem Raj2021-03-301-12/+19
| | | | | | | | This is to avoid a ton of shell variables becoming dependencies Add every case in a new line Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: allow to set CLANG_EXTRA_OE_VENDORS to support custom TARGET_VENDOR valueMartin Jansa2021-03-241-0/+17
| | | | | | | | * instead of hardcoding only yoe, poky, wrs in the patch, add just placeholder string which gets replaced with a list based on CLANG_EXTRA_OE_VENDORS variable in llvm-project-source.inc:add_more_target_vendors Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* recipes: Rework llvm/clang/compiler-rt/libcxx/lldb recipesKhem Raj2018-12-271-0/+20
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>