mirror of
https://github.com/encounter/dtk-template.git
synced 2026-07-10 03:18:35 -07:00
Move conditional linker flag additions from project.py to configure.py (#35)
This commit is contained in:
+8
-1
@@ -178,10 +178,17 @@ cflags_base = [
|
||||
f"-DVERSION={version_num}",
|
||||
]
|
||||
|
||||
# Debug flags
|
||||
# Conditionally-added flags
|
||||
if config.generate_map:
|
||||
# List unused symbols when generating a map file
|
||||
config.ldflags.append("-mapunused")
|
||||
|
||||
if config.debug:
|
||||
# Debug flags
|
||||
cflags_base.extend(["-sym on", "-DDEBUG=1"])
|
||||
config.ldflags.append("-g")
|
||||
else:
|
||||
# No-debug flags
|
||||
cflags_base.append("-DNDEBUG=1")
|
||||
|
||||
# Metrowerks library flags
|
||||
|
||||
Reference in New Issue
Block a user