diff --git a/scripts/genie.lua b/scripts/genie.lua index 28f8ccb026b..0a299178859 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -473,14 +473,6 @@ if _OPTIONS["MAP"] then } end -end -if _OPTIONS["SYMBOLS"] then - configuration { "mingw*" } - postbuildcommands { - "$(SILENT) echo Dumping symbols.", - "$(SILENT) objdump --section=.text --line-numbers --syms --demangle $(TARGET) >$(subst .exe,.sym,$(TARGET))" - } - configuration { } end buildoptions { "-Wno-unknown-pragmas", diff --git a/scripts/src/main.lua b/scripts/src/main.lua index 360749f3a80..9b415f2870e 100644 --- a/scripts/src/main.lua +++ b/scripts/src/main.lua @@ -14,6 +14,14 @@ function mainProject(_target, _subtarget) "NoManifest", } + if _OPTIONS["SYMBOLS"] then + configuration { "mingw*" } + postbuildcommands { + "$(SILENT) echo Dumping symbols.", + "$(SILENT) objdump --section=.text --line-numbers --syms --demangle $(TARGET) >$(subst .exe,.sym,$(TARGET))" + } + end + configuration { "osx*" } linkoptions { "-sectcreate __TEXT __info_plist " .. GEN_DIR .. "/osd/sdl/" .. _OPTIONS["target"] .. "-Info.plist"