trunk/scripts/toolchain.lua
| r249217 | r249218 | |
| 195 | 195 | end |
| 196 | 196 | premake.gcc.cc = "$(MINGW32)/bin/i686-w64-mingw32-gcc" |
| 197 | 197 | 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 |
| 201 | 206 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-mingw32-gcc") |
| 202 | 207 | end |
| 203 | 208 | |
| r249217 | r249218 | |
| 207 | 212 | end |
| 208 | 213 | premake.gcc.cc = "$(MINGW64)/bin/x86_64-w64-mingw32-gcc" |
| 209 | 214 | 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 | |
| 213 | 224 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-mingw64-gcc") |
| 214 | 225 | end |
| 215 | 226 | |