summaryrefslogtreecommitdiffstatshomepage
path: root/scripts
diff options
context:
space:
mode:
author Cowering <cowering@users.noreply.github.com>2015-07-24 16:00:09 -0500
committer Cowering <cowering@users.noreply.github.com>2015-07-24 20:48:56 -0500
commit18c9854ee6bf12145a347d1e1b7ade6d004fe7c1 (patch)
treeb8c1fd0cf5852328a8f6a6965e51ac619fe47a12 /scripts
parent39dec6a8d0d4a2d4f369eb114990381ecc5521d8 (diff)
scrape this for every bit of info (nw)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/genie.lua16
1 files changed, 9 insertions, 7 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua
index 9c37244850c..36cc250fafd 100644
--- a/scripts/genie.lua
+++ b/scripts/genie.lua
@@ -841,22 +841,24 @@ if _OPTIONS["OPTIMIZE"] then
end
if _OPTIONS["LTO"]=="1" then
buildoptions {
- "-flto=1",
+ "-flto=2",
-- these next flags allow MAME to compile in linux GCC 5.2. odr warnings should be fixed as LTO randomly crashes otherwise
- "-ffat-lto-objects", "-Wodr",
+ "-fno-fat-lto-objects", "-Wodr",
"-flto-compression-level=9", -- lto didn't work with anything less on linux with < 12G RAM
"-flto-odr-type-merging",
- "-flto-report" -- if you get an error in lto after [WPA] stage, but before [LTRANS] stage, you need more memory!
+ "-flto-report", -- if you get an error in lto after [WPA] stage, but before [LTRANS] stage, you need more memory!
+ "-fmem-report-wpa","-fmem-report","-fpre-ipa-mem-report","-fpost-ipa-mem-report","-flto-report-wpa","-fmem-report","-fuse-linker-plugin",
}
-- same flags are needed by linker
linkoptions {
- "-flto=1",
+ "-flto=2",
-- these next flags allow MAME to compile in linux GCC 5.2. odr warnings should be fixed as LTO randomly crashes otherwise
- "-ffat-lto-objects", "-Wodr",
+ "-fno-fat-lto-objects", "-Wodr",
"-flto-compression-level=9", -- lto didn't work with anything less on linux with < 12G RAM
"-flto-odr-type-merging",
- "-flto-report" -- if you get an error in lto after [WPA] stage printout, but before any [LTRANS] section printout, you need more memory!
+ "-flto-report", -- if you get an error in lto after [WPA] stage printout, but before any [LTRANS] section printout, you need more memory!
+ "-fmem-report-wpa","-fmem-report","-fpre-ipa-mem-report","-fpost-ipa-mem-report","-flto-report-wpa","-fmem-report","-fuse-linker-plugin",
}
@@ -1018,7 +1020,7 @@ end
end
if (version >= 50000) then
buildoptions {
- "-D__USE_MINGW_ANSI_STDIO=1", -- required or lua won't compile linux ignores this but Windows needs it
+-- "-D__USE_MINGW_ANSI_STDIO=1", -- required or lua won't compile linux ignores this but Windows needs it
"-freport-bug",
"-D_GLIBCXX_USE_CXX11_ABI=0", -- does not seem to matter in linux, mingw needs to link printf,etc
-- "-DNO_MEM_TRACKING", -- must comment out for mingw GCC 5.2 pedantic or get new/delete redef error