Determine debug builds by looking for a magic file

If .debug exists, then we'll compile as a debug build.  This will let me
toggle debug status during development without needing to worry about
committing the change.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2015-01-15 09:15:07 -05:00
parent d299bc464c
commit 88136c0c95
2 changed files with 2 additions and 2 deletions

1
.gitignore vendored
View File

@ -13,3 +13,4 @@ bin/
core.*
html/
latex/
.debug

View File

@ -1,12 +1,11 @@
#!/usr/bin/python
import os
# Configuration variables
CONFIG_VERSION = "6.3"
CONFIG_DEBUG = True
# Set up default environment
CONFIG_DEBUG = os.path.exists(".debug")
CONFIG_CCFLAGS = [ "-O2" ]
if CONFIG_DEBUG == True:
CONFIG_CCFLAGS = [ "-Wall", "-Werror", "-g", "-DCONFIG_DEBUG" ]