Browse Source

CI: Disable NS0 optimization on appveyor

Stefan Profanter 5 years ago
parent
commit
e8e24158e2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      CMakeLists.txt

+ 2 - 1
CMakeLists.txt

@@ -825,7 +825,8 @@ ua_generate_nodeset(
 )
 
 # stack protector and optimization needs to be disabled for the huge ns0 file, otherwise debian packaging fails due to long build times.
-if(UA_PACK_DEBIAN OR (
+# We also disable optimization on Appveyor builds, since they take almost an hour otherwise
+if(UA_PACK_DEBIAN OR (NOT "$ENV{APPVEYOR}" STREQUAL "") OR (
         (CMAKE_BUILD_TYPE STREQUAL "MinSizeRel" OR CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo") AND (
             # List of compilers which have problems with the huge ns0 optimization
             (("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") AND (CMAKE_C_COMPILER_VERSION VERSION_LESS 7.0))