mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +03:00
Let subtarget MESS (not MAME, yet) compile with Windows GCC 5.1 and lto. I am told 'any' recent GCC for Windows has gcc-ar wrapper, if not, change back the line in toolchain.lua (NW)
This commit is contained in:
parent
b834a34575
commit
f115ab2dd2
@ -725,24 +725,19 @@ if _OPTIONS["OPTIMIZE"] then
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
if _OPTIONS["LTO"]=="1" then
|
if _OPTIONS["LTO"]=="1" then
|
||||||
|
-- -flto=4 -> 4 threads
|
||||||
buildoptions {
|
buildoptions {
|
||||||
"-flto",
|
"-flto=4",
|
||||||
|
}
|
||||||
|
buildoptions {
|
||||||
|
"-fno-fat-lto-objects",
|
||||||
}
|
}
|
||||||
-- buildoptions {
|
|
||||||
-- "-ffat-lto-objects",
|
|
||||||
-- }
|
|
||||||
-- buildoptions {
|
|
||||||
-- "-flto-partition=1to1",
|
|
||||||
-- }
|
|
||||||
linkoptions {
|
linkoptions {
|
||||||
"-flto",
|
"-flto=4",
|
||||||
|
}
|
||||||
|
linkoptions {
|
||||||
|
"-fno-fat-lto-objects",
|
||||||
}
|
}
|
||||||
-- linkoptions {
|
|
||||||
-- "-flto-partition=1to1",
|
|
||||||
-- }
|
|
||||||
-- linkoptions {
|
|
||||||
-- "-ffat-lto-objects",
|
|
||||||
-- }
|
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -199,7 +199,8 @@ function toolchain(_buildDir, _subDir)
|
|||||||
end
|
end
|
||||||
premake.gcc.cc = "$(MINGW64)/bin/x86_64-w64-mingw32-gcc"
|
premake.gcc.cc = "$(MINGW64)/bin/x86_64-w64-mingw32-gcc"
|
||||||
premake.gcc.cxx = "$(MINGW64)/bin/x86_64-w64-mingw32-g++"
|
premake.gcc.cxx = "$(MINGW64)/bin/x86_64-w64-mingw32-g++"
|
||||||
premake.gcc.ar = "$(MINGW64)/bin/ar"
|
-- premake.gcc.ar = "$(MINGW64)/bin/ar"
|
||||||
|
premake.gcc.ar = "$(MINGW64)/bin/gcc-ar"
|
||||||
location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-mingw64-gcc")
|
location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-mingw64-gcc")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user