summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--clang-tools-extra/0001-workaround-for-current-compilers.patch15
-rw-r--r--compiler-rt/0001-fuzzer-all-arches.patch14
-rw-r--r--llvm_android/0001-target-newer-android-for-compatibility.patch16
3 files changed, 45 insertions, 0 deletions
diff --git a/clang-tools-extra/0001-workaround-for-current-compilers.patch b/clang-tools-extra/0001-workaround-for-current-compilers.patch
new file mode 100644
index 0000000..bc9b91b
--- /dev/null
+++ b/clang-tools-extra/0001-workaround-for-current-compilers.patch
@@ -0,0 +1,15 @@
+diff --git a/clangd/CMakeLists.txt b/clangd/CMakeLists.txt
+index 33a6e842..98f67640 100644
+--- a/clangd/CMakeLists.txt
++++ b/clangd/CMakeLists.txt
+@@ -7,6 +7,9 @@ if(NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB)
+ list(APPEND CLANGD_ATOMIC_LIB "atomic")
+ endif()
+
++# Workaround for taking address of temporary
++set_source_files_properties(CodeComplete.cpp COMPILE_FLAGS "-fpermissive")
++
+ add_clang_library(clangDaemon
+ AST.cpp
+ ClangdLSPServer.cpp
+
diff --git a/compiler-rt/0001-fuzzer-all-arches.patch b/compiler-rt/0001-fuzzer-all-arches.patch
new file mode 100644
index 0000000..408c234
--- /dev/null
+++ b/compiler-rt/0001-fuzzer-all-arches.patch
@@ -0,0 +1,14 @@
+diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
+index f3935ffd6..1a92361b4 100644
+--- a/cmake/config-ix.cmake
++++ b/cmake/config-ix.cmake
+@@ -199,7 +199,7 @@ set(ALL_SANITIZER_COMMON_SUPPORTED_ARCH ${X86} ${X86_64} ${PPC64}
+ set(ALL_ASAN_SUPPORTED_ARCH ${X86} ${X86_64} ${ARM32} ${ARM64}
+ ${MIPS32} ${MIPS64} ${PPC64} ${S390X})
+ set(ALL_DFSAN_SUPPORTED_ARCH ${X86_64} ${MIPS64} ${ARM64})
+-set(ALL_FUZZER_SUPPORTED_ARCH ${X86_64} ${ARM64})
++set(ALL_FUZZER_SUPPORTED_ARCH ${X86_64} ${ARM64} ${X86} ${ARM32})
+
+ if(APPLE)
+ set(ALL_LSAN_SUPPORTED_ARCH ${X86} ${X86_64} ${MIPS64} ${ARM64})
+
diff --git a/llvm_android/0001-target-newer-android-for-compatibility.patch b/llvm_android/0001-target-newer-android-for-compatibility.patch
new file mode 100644
index 0000000..52f9d4e
--- /dev/null
+++ b/llvm_android/0001-target-newer-android-for-compatibility.patch
@@ -0,0 +1,16 @@
+diff --git a/build.py b/build.py
+index 4edd137..351ee35 100755
+--- a/build.py
++++ b/build.py
+@@ -93,9 +93,9 @@ def android_api(arch, platform=False):
+ if platform:
+ return '26'
+ elif arch in ['arm', 'i386', 'x86']:
+- return '14'
++ return '26' # Needs to be >= 26 for catopen() for OpenMP
+ else:
+- return '21'
++ return '26'
+
+
+ def ndk_path(arch, platform=False):