Ticket #2191: premake4_SSE2_C++11.patch
File premake4_SSE2_C++11.patch, 2.2 KB (added by , 11 years ago) |
---|
-
premake/premake4.lua
13 13 newoption { trigger = "with-system-nvtt", description = "Search standard paths for nvidia-texture-tools library, instead of using bundled copy" } 14 14 newoption { trigger = "with-system-enet", description = "Search standard paths for libenet, instead of using bundled copy" } 15 15 newoption { trigger = "with-system-mozjs185", description = "Search standard paths for libmozjs185, instead of using bundled copy" } 16 newoption { trigger = "with-c++11", description = "Enable C++11 on GCC" } 16 17 newoption { trigger = "sysroot", description = "Set compiler system root path, used for building against a non-system SDK. For example /usr/local becomes SYSROOT/user/local" } 17 18 newoption { trigger = "macosx-version-min", description = "Set minimum required version of the OS X API, the build will possibly fail if an older SDK is used, while newer API functions will be weakly linked (i.e. resolved at runtime)" } 18 19 newoption { trigger = "macosx-bundle", description = "Enable OSX bundle, the argument is the bundle identifier string (e.g. com.wildfiregames.0ad)" } … … 182 183 183 184 -- use native wchar_t type (not typedef to unsigned short) 184 185 flags { "NativeWChar" } 186 flags { "EnableSSE2" } -- Enable SSE2 code generation for VS 185 187 186 188 -- VC++ 2008 has implied FPO as the default (newer versions default to /Oy-) 187 189 -- disable it explicitly since it breaks our stack walker in release build … … 270 272 "-march=i686" 271 273 } 272 274 end 273 274 275 end 276 277 if _OPTIONS["with-c++11"] then 278 buildoptions { 279 -- Enable C++11 standard. VS2010 and higher automatically support C++11 280 -- but we have to enable it manually on GNU C++ and Intel C++ 281 "-std=c++0x" 282 } 283 end 275 284 276 285 if arch == "arm" then 277 286 -- disable warnings about va_list ABI change … … 1255 1264 1256 1265 -- see wstartup.h 1257 1266 linkoptions { "/INCLUDE:_wstartup_InitAndRegisterShutdown" } 1267 -- Enables console for the TEST project on Windows 1268 linkoptions { "/SUBSYSTEM:CONSOLE" } 1258 1269 1259 1270 project_add_manifest() 1260 1271