We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5810477 + f7a4e2b commit b96b2d9Copy full SHA for b96b2d9
SwiftCompilerSources/CMakeLists.txt
@@ -87,6 +87,10 @@ function(add_swift_compiler_modules_library name)
87
list(APPEND swift_compile_options "-O" "-cross-module-optimization")
88
endif()
89
90
+ if(NOT LLVM_ENABLE_ASSERTIONS)
91
+ list(APPEND swift_compile_options "-Xcc" "-DNDEBUG")
92
+ endif()
93
+
94
if(NOT SWIFT_STDLIB_SUPPORT_BACK_DEPLOYMENT)
95
list(APPEND swift_compile_options "-Xfrontend" "-disable-legacy-type-info")
96
0 commit comments