summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* clang: stay closer to cmake.bbclassDaniel McGregor2020-01-204-87/+50
| | | | | | | | | | | Allow more of the cmake variables coming from the OE environment through, otherwise the release C flags and CXX flags get reset to LLVM's default, which greatly extend build times. Also switch to using cmake.bbclass's do_compile and do_install commands. There's no need to call ninja directly anymore. Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
* clang: use nonarch_libdir/clang for all runtime filesDaniel McGregor2020-01-201-10/+16
| | | | | | | | This allows the cross compiler to always find the runtime libraries in the same place, no matter the value of libdir. This is required for multilib to work correctly. Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
* clang: Search for dynamic linker.Daniel McGregor2020-01-203-61/+61
| | | | | | | 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-162-0/+31
| | | | | | Add libgcc as defined by $CC to link of libc++. Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
* mesa: Clang can compile it on mipsKhem Raj2020-01-151-2/+7
| | | | | | gobject-intospection and avahi do not yet prelink with clang/mips64 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* clang: Use git suffix instead of svnKhem Raj2020-01-051-2/+3
| | | | | | | | | | src uri has long moved to git, and that is also being used as solib suffix Fixes packaging errors ERROR: clang-10.0.0-r0 do_package_qa: QA Issue: libclang rdepends on clang-dev [dev-deps] ERROR: clang-10.0.0-r0 do_package_qa: QA Issue: clang rdepends on clang-dev [dev-deps] Signed-off-by: Khem Raj <raj.khem@gmail.com>
* openmp: Disable ompt tools on targets where ompt is not supportedKhem Raj2020-01-021-0/+7
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nfs-utils: Enable unknown-warnings as errorsKhem Raj2019-12-311-0/+2
| | | | | | | This helps configure scripts to detect right set of compiler specific options to enable Signed-off-by: Khem Raj <raj.khem@gmail.com>
* drone: Switch trunk ci to master branchKhem Raj2019-12-261-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* compiler-rt: Depend on libcrypt for sanitizersKhem Raj2019-12-261-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Merge pull request #264 from YoeDistro/kraj/zeusKhem Raj2019-12-261-1/+1
|\ | | | | merge master to zeus ( upgrade to 9.0.1 )
| * Merge remote-tracking branch 'upstream/master' into zeusKhem Raj2019-12-260-0/+0
| |\ | |/ |/|
* | clang: Turn split-dwarf setting into a packageconfig knobKhem Raj2019-12-261-1/+1
| | | | | | | | | | | | | | Disable it by default, since centos7/gcc4.8 can't handle it Fixes Issue #262 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | compiler-rt: Fix build with glibc 2.31Khem Raj2019-12-232-0/+82
| | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | libcxx: Fix build on architectures with baselib != libKhem Raj2019-12-201-1/+3
| | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | clang: Update to 9.0.1 RC3Khem Raj2019-12-191-1/+1
| | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | clang: Use LLVM_USE_SPLIT_DWARF=ONKhem Raj2019-12-181-2/+1
| | | | | | | | | | | | | | | | | | | | | | This helps in consuming less memory during link stage and also fixed link failures on mips64 Using clang cross itself ends up crashing | clang-9: error: unable to execute command: Killed | clang-9: error: linker command failed due to signal (use -v to see invocation) Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | ffmpeg,gstreamer1.0-libav: Fix mips64/clang build errorKhem Raj2019-12-184-0/+75
| | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | clang: Fix cmake exports sed variable using incorrect nameMichael Davis2019-12-171-1/+1
| | | | | | | | Signed-off-by: Michael Davis <michael.davis@essvote.com>
* | openmp: Mark mips64 unsupported hostKhem Raj2019-12-171-0/+1
| | | | | | | | | | | | | | Fixes error Unknown or unsupported architecture Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | Package compiler-rt correctly with non-empty LLVM_LIBDIR_SUFFIXHiroshi Hatake2019-12-161-6/+6
| |
* | Compute LLVM_LIBDIR_SUFFIX correctly on multiarch environmentHiroshi Hatake2019-12-163-1/+20
| | | | | | | | Co-authored-by: INAJIMA Daisuke <inajima@soum.co.jp>
* | cpio: Link with compiler-rt when using clangKhem Raj2019-12-151-0/+1
| | | | | | | | | | | | | | | | | | Fixes /usr/src/debug/cpio/2.13-r0/build/gnu/../../cpio-2.13/gnu/xmalloc.c:100: undefined reference to `__mulodi4' clang-9: error: linker command failed with exit code 1 (use -v to see invocation) Makefile:1124: recipe for target 'rmt' failed Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | libexecinfo,openflow: Use gcc on mipsKhem Raj2019-12-141-0/+5
| | | | | | | | | | | | | | Fails with error on clang error: return address can be determined only for current frame Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | hdf5: Use gcc on musl/x86_64Khem Raj2019-12-121-0/+8
| | | | | | | | | | | | clang crashes for some reason Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | clang: Use cmake variable for libdlKhem Raj2019-12-112-0/+34
| | | | | | | | | | | | | | | | 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: Update tool rename patch to match upstream oneKhem Raj2019-12-111-15/+121
| | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | python3,x64: Can be compiled with clang9Khem Raj2019-12-101-8/+0
| | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | clang: Enable lto when asked for via DISTRO_FEATURESKhem Raj2019-12-071-1/+1
| | | | | | | | | | | | | | | | | | add 'thin-lto' or 'full-lto' to DISTRO_FEATURES to enable it instead of making it unconditional Should fix Issue #236 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | clang: ensure correct python for nativesdk buildsrchard2scout2019-12-071-0/+1
| | | | | | This fixes #162 for nativesdk-clang.
* | clang: Update to 9.0.1-rc2Khem Raj2019-12-071-1/+1
| | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | clang: Fix cmake exports not finding native binaries Issue #230Michael Davis2019-12-052-0/+18
| | | | | | | | | | Signed-off-by: Michael Davis <michael.davis@essvote.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | clang: Fix multilib clang compile failing if lib is in the toolchain pathMichael Davis2019-12-052-0/+45
| | | | | | | | | | Signed-off-by: Michael Davis <michael.davis@essvote.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | packagegroup: be lenient about CLANGSDK settingRoss Burton2019-12-022-2/+2
| | | | | | | | | | | | | | | | | | | | | | As CLANGSDK defaults to '1', users who have not read the README may think that setting it to '0' would disable adding Clang to the SDK. Little do they know that you need to *unset* the value for this to work (as bool('0') -> True). Change the logic to use bb.utils.contains(), so that '0' is not true. Signed-off-by: Ross Burton <ross.burton@intel.com>
* | clang: enable AMDGPU for all targetsJustin Bronder2019-11-261-2/+2
| | | | | | | | | | | | | | | | | | | | In 003dd05e4c168f7c3cccb9cbfad3fd8f38fe8741, clang replaced the oe-core provided llvm for building mesa. However, mesa needs AMDGPU to be enabled on the native target in order to build. Following the example of oe-core's recipe, just enable AMDGPU for all targets. Signed-off-by: Justin Bronder <jsbronder@cold-front.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | layer.conf: Define LLVMVERSION in terms of clang versionKhem Raj2019-11-231-0/+2
| | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | clang: Uodate to 9.0.1-rc1Khem Raj2019-11-2327-153/+36
| | | | | | | | | | | | | | Drop 0021-Driver-Prioritize-SYSROOT-usr-include-over-RESOURCE_.patch as its already applied upstream Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | Create CONTRIBUTING.mdKhem Raj2019-11-201-0/+7
| |
* | Create CODE_OF_CONDUCT.mdKhem Raj2019-11-201-0/+76
| |
* | Update issue templatesKhem Raj2019-11-203-0/+68
| |
* | libffi: Use gcc for armebKhem Raj2019-11-201-1/+6
| | | | | | | | | | | | libffi expects arv7+neon with clang in asm Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | m4,ruby,webkitgtk: Do not use compiler-rt explicitly on arrmeb/ppcKhem Raj2019-11-201-0/+5
| | | | | | | | | | | | | | Needed for clang since it needs __mulodi4 but these arches do not build compiler-rt Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | armeb: Disable compiler-rtKhem Raj2019-11-201-0/+3
| | | | | | | | | | | | compile-rt is not fully ported for ARM big-endian therefore disable it Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | qtwebengine: Link libatomic on x86/clang/gnu-runtimeKhem Raj2019-11-191-0/+1
| | | | | | | | | | | | | | | | | | gcc uses intrinsics for atomic<double> but clang does not for x86 when using libstdc++ ./media/audio/pulse/pulse_input.cc uses this atomic variable Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | llvm: Check for built-in atomic<double> during configureKhem Raj2019-11-182-0/+34
| | | | | | | | | | | | | | | | | | 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-182-38/+0
| | | | | | | | | | | | This reverts commit 2fdb19c4f8b025d4465d78cdf1bc05d786f5e087. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | gerbera: Always use llvm runtime with clangKhem Raj2019-11-181-0/+2
| | | | | | | | | | | | | | | | | | | | | | It expects libc++ with clang Fixes | CMake Error at CMakeLists.txt:316 (message): | gerbera requires C++17 Optional to be available. Check your compiler is | >=GCC 7.1 or >=libc++ 5 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | ruby: Drop linking with compiler-rt is not needed anymoreKhem Raj2019-11-181-1/+0
| | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | webkitgtk: Use compiler-rt runtime when using clangKhem Raj2019-11-181-0/+1
| | | | | | | | | | | | | | Fixes | /usr/src/debug/webkitgtk/2.26.2-r0/webkitgtk-2.26.2/Source/WTF/wtf/CheckedArithmetic.h:365: error: undefined reference to '__mulodi4' Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | m4,ruby: Set COMPILER_RT instead of playing with LDFLAGSKhem Raj2019-11-181-2/+3
| | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>