What: see http://trac.wildfiregames.com/ticket/2329
When: 2013-12-29
Who: Fabio Pedretti
|
|
|
268 | 268 | } |
269 | 269 | end |
270 | 270 | |
271 | | if arch == "x86" or arch == "amd64" then |
272 | | buildoptions { |
273 | | -- enable SSE intrinsics |
274 | | "-msse" |
275 | | } |
276 | | end |
277 | | |
278 | 271 | if os.is("linux") or os.is("bsd") then |
279 | 272 | linkoptions { "-Wl,--no-undefined", "-Wl,--as-needed" } |
280 | 273 | end |
… |
… |
|
282 | 275 | if arch == "x86" then |
283 | 276 | buildoptions { |
284 | 277 | -- To support intrinsics like __sync_bool_compare_and_swap on x86 |
285 | | -- we need to set -march to something that supports them |
286 | | "-march=i686" |
| 278 | -- we need to set -march to something that supports them (i686). |
| 279 | -- We use pentium3 to also enable other features like mmx and sse, |
| 280 | -- while tuning for generic to have good performance on every |
| 281 | -- supported CPU. |
| 282 | -- Note that all these features are already supported on amd64. |
| 283 | "-march=pentium3 -mtune=generic" |
287 | 284 | } |
288 | 285 | end |
289 | 286 | end |