aboutsummaryrefslogtreecommitdiffstats
path: root/testing/keystone/none-build-type.patch
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2020-02-22 12:19:03 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2020-02-22 12:19:03 +0100
commit60bfa2663be057ecb4fb2d28abf58a99099587ee (patch)
treebbcc0bac5e054ecac3ac59518a9a7bddc2abedf1 /testing/keystone/none-build-type.patch
parent49040d4a31d5ab2906761a5e74c147fed8c67f88 (diff)
downloadaports-60bfa2663be057ecb4fb2d28abf58a99099587ee.tar.bz2
aports-60bfa2663be057ecb4fb2d28abf58a99099587ee.tar.xz
testing/keystone: fix build with None build type
Diffstat (limited to 'testing/keystone/none-build-type.patch')
-rw-r--r--testing/keystone/none-build-type.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/keystone/none-build-type.patch b/testing/keystone/none-build-type.patch
new file mode 100644
index 0000000000..d568628377
--- /dev/null
+++ b/testing/keystone/none-build-type.patch
@@ -0,0 +1,15 @@
+The build system includes its own check for available CMake build types.
+This check is incorrect as it doesn't include the None build type.
+
+diff -upr keystone-0.9.1.orig/llvm/CMakeLists.txt keystone-0.9.1/llvm/CMakeLists.txt
+--- keystone-0.9.1.orig/llvm/CMakeLists.txt 2020-02-22 12:17:15.681580953 +0100
++++ keystone-0.9.1/llvm/CMakeLists.txt 2020-02-22 12:18:20.949144210 +0100
+@@ -142,7 +142,7 @@ include(CPack)
+ string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE)
+
+ if (CMAKE_BUILD_TYPE AND
+- NOT uppercase_CMAKE_BUILD_TYPE MATCHES "^(DEBUG|RELEASE|RELWITHDEBINFO|MINSIZEREL)$")
++ NOT uppercase_CMAKE_BUILD_TYPE MATCHES "^(NONE|DEBUG|RELEASE|RELWITHDEBINFO|MINSIZEREL)$")
+ message(FATAL_ERROR "Invalid value for CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
+ endif()
+