summaryrefslogtreecommitdiffstats
path: root/ios
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2022-04-26 09:39:50 +0300
committerAndras Timar <andras.timar@collabora.com>2022-04-26 11:18:47 +0200
commit40fb6fc670993a6cd3e9e395d108d40ca675475f (patch)
tree4f856beba787c42ad91046c2fa411dbd4c59de0e /ios
parentRemember last UI mode (diff)
downloadonline-40fb6fc670993a6cd3e9e395d108d40ca675475f.tar.gz
online-40fb6fc670993a6cd3e9e395d108d40ca675475f.zip
Define ENABLE_DEBUG in the iOS app Xcode project, not DEBUG
We don't have any ifdefs on DEBUG. Signed-off-by: Tor Lillqvist <tml@collabora.com> Change-Id: I76b4fe8ebbce235e967d8b5275fea663d3fb8f9d
Diffstat (limited to 'ios')
-rw-r--r--ios/Mobile.xcodeproj/project.pbxproj4
-rw-r--r--ios/config.h.in3
2 files changed, 5 insertions, 2 deletions
diff --git a/ios/Mobile.xcodeproj/project.pbxproj b/ios/Mobile.xcodeproj/project.pbxproj
index a3fdd27b8f..b8dd86d185 100644
--- a/ios/Mobile.xcodeproj/project.pbxproj
+++ b/ios/Mobile.xcodeproj/project.pbxproj
@@ -3812,7 +3812,7 @@
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
- "DEBUG=1",
+ "ENABLE_DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
@@ -3895,7 +3895,7 @@
GCC_PREPROCESSOR_DEFINITIONS = (
"IOS=IOS",
"DISABLE_DYNLOADING=1",
- "DEBUG=1",
+ "ENABLE_DEBUG=1",
"COOLWSD_CONFIGDIR='\".\"'",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = NO;
diff --git a/ios/config.h.in b/ios/config.h.in
index 6300ebee59..6ed2c5abbe 100644
--- a/ios/config.h.in
+++ b/ios/config.h.in
@@ -11,7 +11,10 @@
/* Whether to compile in some extra debugging support code and disable some
security pieces */
+/* When building with Xcode we define ENABLE_DEBUG when debugging, but not otherwise */
+#if !defined ENABLE_DEBUG
#define ENABLE_DEBUG 0
+#endif
/* Whether to enable SSL */
#define ENABLE_SSL 0