aboutsummaryrefslogtreecommitdiffstats
path: root/community/emscripten-fastcomp/none-build-type.patch
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2020-02-22 00:07:35 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2020-02-22 00:12:39 +0100
commitd241a2c607d162a18ff2d522220a37121a1460db (patch)
treeb6d1ce606c38cdbf2e636780f5ae521dddd2acf8 /community/emscripten-fastcomp/none-build-type.patch
parentafd9ecdf23d26aaf846eb7fce132fbda98f82cf3 (diff)
downloadaports-d241a2c607d162a18ff2d522220a37121a1460db.tar.bz2
aports-d241a2c607d162a18ff2d522220a37121a1460db.tar.xz
community/emscripten-fastcomp: fix build with None build type
Diffstat (limited to 'community/emscripten-fastcomp/none-build-type.patch')
-rw-r--r--community/emscripten-fastcomp/none-build-type.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/community/emscripten-fastcomp/none-build-type.patch b/community/emscripten-fastcomp/none-build-type.patch
new file mode 100644
index 0000000000..14f10b223f
--- /dev/null
+++ b/community/emscripten-fastcomp/none-build-type.patch
@@ -0,0 +1,15 @@
+The build system includes its one check for available CMake build types.
+This check is incorrect as it doesn't include the None build type.
+
+diff -upr emscripten-fastcomp-1.39.0.orig/CMakeLists.txt emscripten-fastcomp-1.39.0/CMakeLists.txt
+--- emscripten-fastcomp-1.39.0.orig/CMakeLists.txt 2020-02-22 00:06:01.828125245 +0100
++++ emscripten-fastcomp-1.39.0/CMakeLists.txt 2020-02-22 00:06:29.265827242 +0100
+@@ -267,7 +267,7 @@ endif()
+ 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()
+