summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang/common.inc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-01-16 20:01:04 -0800
committerKhem Raj <raj.khem@gmail.com>2019-01-19 13:59:52 -0800
commit73f77d24cd944dee6a1838345921286d70cf14f7 (patch)
treea60a0b23bf71318669b599ed9b6d44b8649dcd34 /recipes-devtools/clang/common.inc
parente82ff43b2f361a36d18ac9d09f119f02ca2ac989 (diff)
downloadmeta-clang-73f77d24cd944dee6a1838345921286d70cf14f7.tar.gz
clang: Switch to upcoming 8.0 release branch
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>
Diffstat (limited to 'recipes-devtools/clang/common.inc')
-rw-r--r--recipes-devtools/clang/common.inc64
1 files changed, 16 insertions, 48 deletions
diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc
index d582d34..ad1f435 100644
--- a/recipes-devtools/clang/common.inc
+++ b/recipes-devtools/clang/common.inc
@@ -8,59 +8,27 @@ LICENSE = "NCSA"
8BASEURI ??= "${LLVM_GIT}/llvm-project;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH}" 8BASEURI ??= "${LLVM_GIT}/llvm-project;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH}"
9SRC_URI = "\ 9SRC_URI = "\
10 ${BASEURI} \ 10 ${BASEURI} \
11 ${LLVMPATCHES} \ 11 ${@'file://0000-clang-Enable-SSP-and-PIE-by-default.patch' if '${GCCPIE}' else ''} \
12 ${CLANGPATCHES} \ 12 file://0001-clang-driver-Use-lib-for-ldso-on-OE.patch \
13 ${COMPILERRTPATCHES} \ 13 file://0002-clang-Driver-tools.cpp-Add-lssp_nonshared-on-musl.patch \
14 ${LIBCXXABIPATCHES} \ 14 file://0003-clang-musl-ppc-does-not-support-128-bit-long-double.patch \
15 ${LIBCXXPATCHES} \ 15 file://0004-clang-Prepend-trailing-to-sysroot.patch \
16 ${LLDBPATCHES} \ 16 file://0005-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch \
17 file://0006-clang-Define-releative-gcc-installation-dir.patch \
18 file://0007-clang-Fix-ldso-for-musl-on-x86-and-x32-architectures.patch \
19 file://0008-clang-scan-view-needs-python-2.x.patch \
20 file://0009-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch \
21 file://0010-llvm-allow-env-override-of-exe-path.patch \
22 file://0011-lldb-Add-lxml2-to-linker-cmdline-of-xml-is-found.patch \
23 file://0012-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch \
24 file://0013-compiler-rt-support-a-new-embedded-linux-target.patch \
25 file://0014-compiler-rt-Simplify-cross-compilation.-Don-t-use-na.patch \
26 file://0015-compiler-rt-Disable-tsan-on-OE-glibc.patch \
17" 27"
18 28
19# llvm patches
20#
21LLVMPATCHES = "\
22 file://0001-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch;patchdir=llvm \
23 file://0002-llvm-allow-env-override-of-exe-path.patch;patchdir=llvm \
24 file://0003-llvm-Disable-calls-to-_finite-and-other-glibc-only-f.patch;patchdir=llvm \
25"
26# Fallback to no-PIE if not set 29# Fallback to no-PIE if not set
27GCCPIE ??= "" 30GCCPIE ??= ""
28 31
29# Clang patches
30CLANGPATCHES = "\
31 file://0001-clang-driver-Use-lib-for-ldso-on-OE.patch;patchdir=clang \
32 file://0002-clang-Driver-tools.cpp-Add-lssp_nonshared-on-musl.patch;patchdir=clang \
33 file://0003-clang-musl-ppc-does-not-support-128-bit-long-double.patch;patchdir=clang \
34 file://0004-clang-Prepend-trailing-to-sysroot.patch;patchdir=clang \
35 file://0005-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch;patchdir=clang \
36 file://0006-clang-Define-releative-gcc-installation-dir.patch;patchdir=clang \
37 file://0007-clang-Fix-ldso-for-musl-on-x86-and-x32-architectures.patch;patchdir=clang \
38 file://0008-clang-scan-view-needs-python-2.x.patch;patchdir=clang \
39"
40CLANGPATCHES += "${@'file://0009-clang-Enable-SSP-and-PIE-by-default.patch;patchdir=clang' if '${GCCPIE}' else ''}"
41
42# compiler-rt patches
43COMPILERRTPATCHES = "\
44 file://0001-compiler-rt-support-a-new-embedded-linux-target.patch;patchdir=compiler-rt \
45 file://0002-compiler-rt-Simplify-cross-compilation.-Don-t-use-na.patch;patchdir=compiler-rt \
46 file://0003-compiler-rt-Disable-tsan-on-OE-glibc.patch;patchdir=compiler-rt \
47 file://0004-compiler-rt-cmake-mips-Do-not-specify-target-with-OE.patch;patchdir=compiler-rt \
48"
49# libcxxabi patches
50LIBCXXABIPATCHES ="\
51 file://0001-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch;patchdir=libcxxabi \
52"
53
54# libc++ patches
55LIBCXXPATCHES = "\
56"
57
58# lldb patches
59LLDBPATCHES = "\
60 file://0001-lldb-Include-limits.h-for-PATH_MAX-definition.patch;patchdir=lldb \
61 file://0002-lldb-Add-lxml2-to-linker-cmdline-of-xml-is-found.patch;patchdir=lldb \
62"
63
64S = "${TMPDIR}/work-shared/llvm-project-source-${PV}-${PR}/git" 32S = "${TMPDIR}/work-shared/llvm-project-source-${PV}-${PR}/git"
65B = "${WORKDIR}/llvm-project-source-${PV}/build.${HOST_SYS}.${TARGET_SYS}" 33B = "${WORKDIR}/llvm-project-source-${PV}/build.${HOST_SYS}.${TARGET_SYS}"
66 34