diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-03-24 06:43:03 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2016-03-24 06:43:03 +0000 |
commit | bef9311982e38876497c731a1d6726efcdd4aca9 (patch) | |
tree | 8d2e6b529d14ce9164fa28c63cdae19ebe0c85db | |
parent | 4e430cc7b14c2e52071c03b796b1b7a017b4790f (diff) | |
download | meta-clang-bef9311982e38876497c731a1d6726efcdd4aca9.tar.gz |
libcxxabi: Fix build on arm
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | recipes-devtools/clang/libcxxabi/0001-Do-not-use-LIBCXXABI_ARM_EHABI.patch | 30 | ||||
-rw-r--r-- | recipes-devtools/clang/libcxxabi_git.bb | 1 |
2 files changed, 31 insertions, 0 deletions
diff --git a/recipes-devtools/clang/libcxxabi/0001-Do-not-use-LIBCXXABI_ARM_EHABI.patch b/recipes-devtools/clang/libcxxabi/0001-Do-not-use-LIBCXXABI_ARM_EHABI.patch new file mode 100644 index 0000000..0684d2c --- /dev/null +++ b/recipes-devtools/clang/libcxxabi/0001-Do-not-use-LIBCXXABI_ARM_EHABI.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 141910ae8cee87307a89a9e43894000dcf47366e Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 24 Mar 2016 06:31:35 +0000 | ||
4 | Subject: [PATCH] Do not use LIBCXXABI_ARM_EHABI | ||
5 | |||
6 | Fixes errors like | ||
7 | libcxxabi/src/cxa_exception.cpp:258:21: error: unknown type name '_Unwind_Control_Block' | ||
8 | static_cast<_Unwind_Control_Block*>(unwind_exception)->barrier_cache.bitpattern[0]); | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | include/__cxxabi_config.h | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/include/__cxxabi_config.h b/include/__cxxabi_config.h | ||
16 | index 68e325f..41fc953 100644 | ||
17 | --- a/include/__cxxabi_config.h | ||
18 | +++ b/include/__cxxabi_config.h | ||
19 | @@ -12,7 +12,7 @@ | ||
20 | |||
21 | #if defined(__arm__) && !defined(__USING_SJLJ_EXCEPTIONS__) && \ | ||
22 | !defined(__ARM_DWARF_EH__) | ||
23 | -#define LIBCXXABI_ARM_EHABI 1 | ||
24 | +#define LIBCXXABI_ARM_EHABI 0 | ||
25 | #else | ||
26 | #define LIBCXXABI_ARM_EHABI 0 | ||
27 | #endif | ||
28 | -- | ||
29 | 1.9.1 | ||
30 | |||
diff --git a/recipes-devtools/clang/libcxxabi_git.bb b/recipes-devtools/clang/libcxxabi_git.bb index 5f8243e..092e3e5 100644 --- a/recipes-devtools/clang/libcxxabi_git.bb +++ b/recipes-devtools/clang/libcxxabi_git.bb | |||
@@ -21,6 +21,7 @@ SRC_URI = "\ | |||
21 | ${LLVM_GIT}/llvm.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=llvm \ | 21 | ${LLVM_GIT}/llvm.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=llvm \ |
22 | ${LLVM_GIT}/libcxx.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=libcxx;destsuffix=git/projects/libcxx \ | 22 | ${LLVM_GIT}/libcxx.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=libcxx;destsuffix=git/projects/libcxx \ |
23 | ${LLVM_GIT}/libcxxabi.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=libcxxabi;destsuffix=git/projects/libcxxabi \ | 23 | ${LLVM_GIT}/libcxxabi.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=libcxxabi;destsuffix=git/projects/libcxxabi \ |
24 | file://0001-Do-not-use-LIBCXXABI_ARM_EHABI.patch \ | ||
24 | " | 25 | " |
25 | 26 | ||
26 | SRCREV_FORMAT = "llvm_libcxx_libcxxabi" | 27 | SRCREV_FORMAT = "llvm_libcxx_libcxxabi" |