Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/build/premake/premake5.lua
Show First 20 Lines • Show All 299 Lines • ▼ Show 20 Lines | else | ||||
if arch == "x86" then | if arch == "x86" then | ||||
buildoptions { | buildoptions { | ||||
-- To support intrinsics like __sync_bool_compare_and_swap on x86 | -- To support intrinsics like __sync_bool_compare_and_swap on x86 | ||||
-- we need to set -march to something that supports them (i686). | -- we need to set -march to something that supports them (i686). | ||||
-- We use pentium3 to also enable other features like mmx and sse, | -- We use pentium3 to also enable other features like mmx and sse, | ||||
-- while tuning for generic to have good performance on every | -- while tuning for generic to have good performance on every | ||||
-- supported CPU. | -- supported CPU. | ||||
-- Note that all these features are already supported on amd64. | -- Note that all these features are already supported on amd64. | ||||
"-march=pentium3 -mtune=generic" | "-march=pentium3 -mtune=generic", | ||||
-- This allows x86 operating systems to handle the 2GB+ public mod. | |||||
"-D_FILE_OFFSET_BITS=64" | |||||
} | } | ||||
end | end | ||||
end | end | ||||
if arch == "arm" then | if arch == "arm" then | ||||
-- disable warnings about va_list ABI change and use | -- disable warnings about va_list ABI change and use | ||||
-- compile-time flags for futher configuration. | -- compile-time flags for futher configuration. | ||||
buildoptions { "-Wno-psabi" } | buildoptions { "-Wno-psabi" } | ||||
▲ Show 20 Lines • Show All 1,216 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator