Define DEBUG=0 for release builds

This commit is contained in:
Zorg committed 2021-06-06 19:35:15 -07:00
1 parent 4825ac5d62
commit 89ecb88f2b
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ CLANG_WARN_SUSPICIOUS_MOVE = YES;
GCC_OPTIMIZATION_LEVEL = s
DEBUG_INFORMATION_FORMAT = dwarf-with-dsym
GCC_GENERATE_DEBUGGING_SYMBOLS = YES
GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS_COMMON)
GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS_COMMON) DEBUG=0
DEAD_CODE_STRIPPING = YES
GCC_TREAT_WARNINGS_AS_ERRORS = NO
GCC_WARN_UNINITIALIZED_AUTOS = YES
+1 -1
View File
@@ -53,7 +53,7 @@ static NSString * const UPDATED_VERSION = @"2.0";
// Apple's file manager may not work well over the network (on macOS 10.11.4 as of writing this), but at the same time
// I don't want to have to export SUFileManager in release mode. The test app is primarily
// aimed to be used in debug mode, so I think this is a good compromise
#ifdef DEBUG
#if DEBUG
SUFileManager *fileManager = [[SUFileManager alloc] init];
#else
NSFileManager *fileManager = [NSFileManager defaultManager];