summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/src/main.lua')
-rw-r--r--scripts/src/main.lua40
1 files changed, 19 insertions, 21 deletions
diff --git a/scripts/src/main.lua b/scripts/src/main.lua
index 0192d849676..70946f47749 100644
--- a/scripts/src/main.lua
+++ b/scripts/src/main.lua
@@ -47,12 +47,25 @@ end
"Symbols", -- always include minimum symbols for executables
}
- if _OPTIONS["SYMBOLS"] then
+ if _OPTIONS["SYMBOLS"]~=nil and _OPTIONS["SYMBOLS"]~=0 and (_OPTIONS["PDB_SYMBOLS"]==nil or _OPTIONS["PDB_SYMBOLS"]==0) then
+ local llvm_obdjump = false
+ local objdump_ver = backtick('objdump --version')
+ if string.match(objdump_ver, 'LLVM version ') then
+ llvm_obdjump = true
+ end
+
configuration { "mingw*" }
- postbuildcommands {
- "$(SILENT) echo Dumping symbols.",
- "$(SILENT) objdump --section=.text --line-numbers --syms --demangle $(TARGET) >$(subst .exe,.sym,$(TARGET))"
- }
+ if llvm_obdjump then
+ postbuildcommands {
+ "$(SILENT) echo Dumping symbols.",
+ "$(SILENT) " .. PYTHON .. " " .. MAME_DIR .. "scripts/build/llvm-objdump-filter.py $(TARGET) | c++filt >$(subst .exe,.sym,$(TARGET))"
+ }
+ else
+ postbuildcommands {
+ "$(SILENT) echo Dumping symbols.",
+ "$(SILENT) objdump --section=.text --syms --demangle $(TARGET) >$(subst .exe,.sym,$(TARGET))"
+ }
+ end
end
configuration { "Release" }
@@ -144,14 +157,13 @@ end
links {
"utils",
ext_lib("expat"),
- "softfloat",
"softfloat3",
"wdlfft",
"ymfm",
ext_lib("jpeg"),
"7z",
}
-if not _OPTIONS["FORCE_DRC_C_BACKEND"] then
+if CPU_INCLUDE_DRC_NATIVE then
links {
"asmjit",
}
@@ -220,14 +232,6 @@ end
GEN_DIR .. "resource",
}
- configuration { "vs20*"}
- -- See https://github.com/bkaradzic/GENie/issues/544
- includedirs {
- MAME_DIR .. "scripts/resources/windows/" .. _target,
- GEN_DIR .. "resource",
- }
- configuration { }
-
if (STANDALONE==true) then
standalone();
@@ -269,12 +273,6 @@ if (STANDALONE~=true) then
resincludedirs {
MAME_DIR .. "scripts/resources/windows/mame",
}
- configuration { "vs20*"}
- -- See https://github.com/bkaradzic/GENie/issues/544
- includedirs {
- MAME_DIR .. "scripts/resources/windows/mame",
- }
- configuration { }
end
local mainfile = MAME_DIR .. "src/" .. _target .. "/" .. _subtarget .. ".cpp"