diff options
author | Ming Liu <liu.ming50@gmail.com> | 2022-06-22 16:17:12 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-07-05 09:29:24 -0400 |
commit | 201e74960feafc19e8393062180b93139a4b91de (patch) | |
tree | aeb8cff24cd62804ee88473c5194bb1fdb11333b /recipes-devtools/clang/common.inc | |
parent | 9cea73660aa56b461f96487ddcbfba5e7b64fafb (diff) | |
download | meta-clang-201e74960feafc19e8393062180b93139a4b91de.tar.gz |
compiler-rt: backport a patch fixing ARMv5 cross-compile
Compiler-rt cross-compile for ARMv5 fails because D99282 made it an error if DMB
is used for any pre-ARMv6 targets. More specifically, the "#error only supported
on ARMv6+" added in D99282 will cause compilation to fail when any source file
which includes assembly.h are compiled for pre-ARMv6 targets. Since the only
place where DMB is used is syn-ops.h (which is only included by
arm/sync_fetch_and_* and these files are excluded from being built for older
targets), this patch moves the definition there to avoid the issues described
above.
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Diffstat (limited to 'recipes-devtools/clang/common.inc')
-rw-r--r-- | recipes-devtools/clang/common.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc index b61d239..7cbd7f4 100644 --- a/recipes-devtools/clang/common.inc +++ b/recipes-devtools/clang/common.inc | |||
@@ -45,6 +45,7 @@ SRC_URI = "\ | |||
45 | file://0033-lldb-Link-with-libatomic-on-x86.patch \ | 45 | file://0033-lldb-Link-with-libatomic-on-x86.patch \ |
46 | file://0034-clang-exclude-openembedded-distributions-from-settin.patch \ | 46 | file://0034-clang-exclude-openembedded-distributions-from-settin.patch \ |
47 | file://0035-compiler-rt-Enable-__int128-for-ppc32.patch \ | 47 | file://0035-compiler-rt-Enable-__int128-for-ppc32.patch \ |
48 | file://0036-compiler-rt-builtins-Move-DMB-definition-to-syn-opsh.patch \ | ||
48 | " | 49 | " |
49 | # Fallback to no-PIE if not set | 50 | # Fallback to no-PIE if not set |
50 | GCCPIE ??= "" | 51 | GCCPIE ??= "" |