diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-07-29 23:04:31 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-08-12 22:00:22 -0700 |
commit | 610a8e1a2ce02b77f905bac261e80b023450b573 (patch) | |
tree | 3618fab7398e489267dfee8dd1dc485ba1d1d948 /recipes-devtools/clang/clang/0002-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch | |
parent | c969fa61147845efdc6d3a47c782e2a71de745f9 (diff) | |
download | meta-clang-610a8e1a2ce02b77f905bac261e80b023450b573.tar.gz |
clang: Upgrade to 9.x-rcX
dont package six.py, its provided by python3-six package
default to lp64d ABI and rv64gc ISA.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-devtools/clang/clang/0002-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch')
-rw-r--r-- | recipes-devtools/clang/clang/0002-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/recipes-devtools/clang/clang/0002-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch b/recipes-devtools/clang/clang/0002-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch new file mode 100644 index 0000000..bdd148e --- /dev/null +++ b/recipes-devtools/clang/clang/0002-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch | |||
@@ -0,0 +1,67 @@ | |||
1 | From 112e33992bbe21dceb1d14978585bd9d083648ec Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sun, 27 Aug 2017 10:37:49 -0700 | ||
4 | Subject: [PATCH 02/20] libcxxabi: Find libunwind headers when | ||
5 | LIBCXXABI_LIBUNWIND_INCLUDES is set | ||
6 | |||
7 | Currently, when LIBCXXABI_LIBUNWIND_INCLUDES is set via CMake arguments | ||
8 | then it ends up not searching the specified dir and unwind.h is not found | ||
9 | especially for ARM targets | ||
10 | |||
11 | This patch makes the searching synthesized directories and then set | ||
12 | LIBCXXABI_LIBUNWIND_INCLUDES if its there in environment | ||
13 | |||
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
15 | --- | ||
16 | libcxxabi/CMakeLists.txt | 21 +++++++++++---------- | ||
17 | 1 file changed, 11 insertions(+), 10 deletions(-) | ||
18 | |||
19 | diff --git a/libcxxabi/CMakeLists.txt b/libcxxabi/CMakeLists.txt | ||
20 | index ce69fff1370..47e09e34fc2 100644 | ||
21 | --- a/libcxxabi/CMakeLists.txt | ||
22 | +++ b/libcxxabi/CMakeLists.txt | ||
23 | @@ -455,14 +455,9 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${LIBCXXABI_C_FLAGS}") | ||
24 | # Setup Source Code | ||
25 | #=============================================================================== | ||
26 | |||
27 | -set(LIBCXXABI_LIBUNWIND_INCLUDES "${LIBCXXABI_LIBUNWIND_INCLUDES}" CACHE PATH | ||
28 | - "Specify path to libunwind includes." FORCE) | ||
29 | -set(LIBCXXABI_LIBUNWIND_PATH "${LIBCXXABI_LIBUNWIND_PATH}" CACHE PATH | ||
30 | - "Specify path to libunwind source." FORCE) | ||
31 | - | ||
32 | include_directories(include) | ||
33 | if (LIBCXXABI_USE_LLVM_UNWINDER OR LLVM_NATIVE_ARCH MATCHES ARM) | ||
34 | - find_path(LIBCXXABI_LIBUNWIND_INCLUDES_INTERNAL libunwind.h | ||
35 | + find_path(LIBCXXABI_LIBUNWIND_INCLUDES libunwind.h | ||
36 | PATHS ${LIBCXXABI_LIBUNWIND_INCLUDES} | ||
37 | ${LIBCXXABI_LIBUNWIND_PATH}/include | ||
38 | ${CMAKE_BINARY_DIR}/${LIBCXXABI_LIBUNWIND_INCLUDES} | ||
39 | @@ -473,15 +468,21 @@ if (LIBCXXABI_USE_LLVM_UNWINDER OR LLVM_NATIVE_ARCH MATCHES ARM) | ||
40 | NO_CMAKE_FIND_ROOT_PATH | ||
41 | ) | ||
42 | |||
43 | - if (LIBCXXABI_LIBUNWIND_INCLUDES_INTERNAL STREQUAL "LIBCXXABI_LIBUNWIND_INCLUDES_INTERNAL-NOTFOUND") | ||
44 | - set(LIBCXXABI_LIBUNWIND_INCLUDES_INTERNAL "") | ||
45 | + if (LIBCXXABI_LIBUNWIND_INCLUDES STREQUAL "LIBCXXABI_LIBUNWIND_INCLUDES-NOTFOUND") | ||
46 | + set(LIBCXXABI_LIBUNWIND_INCLUDES "") | ||
47 | endif() | ||
48 | |||
49 | - if (NOT LIBCXXABI_LIBUNWIND_INCLUDES_INTERNAL STREQUAL "") | ||
50 | - include_directories("${LIBCXXABI_LIBUNWIND_INCLUDES_INTERNAL}") | ||
51 | + if (NOT LIBCXXABI_LIBUNWIND_INCLUDES STREQUAL "") | ||
52 | + include_directories("${LIBCXXABI_LIBUNWIND_INCLUDES}") | ||
53 | endif() | ||
54 | endif() | ||
55 | |||
56 | +set(LIBCXXABI_LIBUNWIND_INCLUDES "${LIBCXXABI_LIBUNWIND_INCLUDES}" CACHE PATH | ||
57 | + "Specify path to libunwind includes." FORCE) | ||
58 | +set(LIBCXXABI_LIBUNWIND_PATH "${LIBCXXABI_LIBUNWIND_PATH}" CACHE PATH | ||
59 | + "Specify path to libunwind source." FORCE) | ||
60 | + | ||
61 | + | ||
62 | # Add source code. This also contains all of the logic for deciding linker flags | ||
63 | # soname, etc... | ||
64 | add_subdirectory(src) | ||
65 | -- | ||
66 | 2.22.0 | ||
67 | |||