From f115ab2dd2fd42c3d90bdbd3ce16e091839df24e Mon Sep 17 00:00:00 2001 From: Cowering Date: Fri, 29 May 2015 17:43:09 -0500 Subject: 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) --- scripts/genie.lua | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) (limited to 'scripts/genie.lua') diff --git a/scripts/genie.lua b/scripts/genie.lua index 004016c916f..356d4d8d3dc 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -725,24 +725,19 @@ if _OPTIONS["OPTIMIZE"] then } end if _OPTIONS["LTO"]=="1" then +-- -flto=4 -> 4 threads buildoptions { - "-flto", + "-flto=4", + } + buildoptions { + "-fno-fat-lto-objects", + } + linkoptions { + "-flto=4", } --- buildoptions { --- "-ffat-lto-objects", --- } --- buildoptions { --- "-flto-partition=1to1", --- } linkoptions { - "-flto", + "-fno-fat-lto-objects", } --- linkoptions { --- "-flto-partition=1to1", --- } --- linkoptions { --- "-ffat-lto-objects", --- } end -- cgit v1.2.3-70-g09d2