Skip to content

Commit

Permalink
Disallow debug compiling.
Browse files Browse the repository at this point in the history
  • Loading branch information
clobber committed Apr 27, 2018
1 parent 24b816f commit 04db9b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions mGBA.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3221,6 +3221,7 @@
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
GCC_INCREASE_PRECOMPILED_HEADER_SHARING = NO;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = "DEBUG=1";
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
Expand Down
4 changes: 4 additions & 0 deletions src/platform/openemu/mGBAGameCore.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF

#define SAMPLES 1024

#ifdef DEBUG
#error "Cores should not be compiled in DEBUG! Follow the guide https://github.com/OpenEmu/OpenEmu/wiki/Compiling-From-Source-Guide"
#endif

const char* const binaryName = "mGBA";

@interface mGBAGameCore () <OEGBASystemResponderClient>
Expand Down

0 comments on commit 04db9b4

Please sign in to comment.