Previous 199869 Revisions Next

r40706 Sunday 13th September, 2015 at 14:55:03 UTC by Cowering
fix cross compile paths, make ar work with lto until Windows GCC fixed
[scripts]toolchain.lua

trunk/scripts/toolchain.lua
r249217r249218
195195         end     
196196         premake.gcc.cc  = "$(MINGW32)/bin/i686-w64-mingw32-gcc"
197197         premake.gcc.cxx = "$(MINGW32)/bin/i686-w64-mingw32-g++"
198         premake.gcc.ar  = "$(MINGW32)/bin/ar"
199-- lto docs say to use gcc-ar so that plugin is completely setup, but this doesn't work in windows with the current build tools' copy of gcc-ar.exe
200--         premake.gcc.ar  = "$(MINGW32)/bin/gcc-ar"
198-- lto docs say to use gcc-ar so that plugin is completely setup, but this doesn't work in Windows with the current buildtool's version of gcc-ar.exe
199-- if you are using LTO=1 you must have GCC 5.0+
200
201         if _OPTIONS["LTO"]=="1" then
202            premake.gcc.ar  = "$(MINGW32)/bin/i686-w64-mingw32-gcc-ar"
203         else
204            premake.gcc.ar  = "$(MINGW32)/bin/i686-w64-mingw32-ar"
205         end
201206         location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-mingw32-gcc")
202207      end
203208
r249217r249218
207212         end           
208213         premake.gcc.cc  = "$(MINGW64)/bin/x86_64-w64-mingw32-gcc"
209214         premake.gcc.cxx = "$(MINGW64)/bin/x86_64-w64-mingw32-g++"
210         premake.gcc.ar  = "$(MINGW64)/bin/ar"
211-- lto docs say to use gcc-ar so that plugin is completely setup, but this doesn't work in windows with the current build tools' copy of gcc-ar.exe
212--         premake.gcc.ar  = "$(MINGW64)/bin/gcc-ar"
215-- lto docs say to use gcc-ar so that plugin is completely setup, but this doesn't work in Windows with the current buildtool's version of gcc-ar.exe
216-- if you are using LTO=1 you must have GCC 5.0+
217
218         if _OPTIONS["LTO"]=="1" then
219            premake.gcc.ar  = "$(MINGW64)/bin/x86_64-w64-mingw32-gcc-ar"
220         else
221            premake.gcc.ar  = "$(MINGW64)/bin/x86_64-w64-mingw32-ar"
222         end
223
213224         location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-mingw64-gcc")
214225      end
215226


Previous 199869 Revisions Next


© 1997-2024 The MAME Team