What: see http://trac.wildfiregames.com/ticket/2330
When: 2013-12-29
Who: Fabio Pedretti
|
|
|
16 | 16 | newoption { trigger = "with-system-enet", description = "Search standard paths for libenet, instead of using bundled copy" } |
17 | 17 | newoption { trigger = "with-system-miniupnpc", description = "Search standard paths for libminiupnpc, instead of using bundled copy" } |
18 | 18 | newoption { trigger = "with-system-mozjs185", description = "Search standard paths for libmozjs185, instead of using bundled copy" } |
19 | | newoption { trigger = "with-c++11", description = "Enable C++11 on GCC" } |
20 | 19 | 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" } |
21 | 20 | 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)" } |
22 | 21 | newoption { trigger = "macosx-bundle", description = "Enable OSX bundle, the argument is the bundle identifier string (e.g. com.wildfiregames.0ad)" } |
… |
… |
|
106 | 105 | minor = 0+minor |
107 | 106 | has_broken_pch = (major < 4 or (major == 4 and minor < 2)) |
108 | 107 | if has_broken_pch then |
109 | | print("WARNING: Detected GCC <4.2 -- disabling PCH for Atlas (will increase build times)") |
| 108 | print("WARNING: Detected GCC < 4.2 -- disabling PCH for Atlas (will increase build times)") |
110 | 109 | end |
111 | 110 | end |
112 | 111 | end |
… |
… |
|
288 | 287 | end |
289 | 288 | end |
290 | 289 | |
291 | | if _OPTIONS["with-c++11"] then |
| 290 | has_cpp11 = (major > 4 or (major == 4 and minor >= 8)) |
| 291 | if has_cpp11 then |
292 | 292 | buildoptions { |
293 | 293 | -- Enable C++11 standard. VS2010 and higher automatically support C++11 |
294 | 294 | -- but we have to enable it manually on GNU C++ and Intel C++ |
295 | | "-std=c++0x" |
| 295 | "-std=c++11" |
296 | 296 | } |
297 | 297 | end |
298 | 298 | |