Make the *nix ARM support a little sturdier, Fixes #2121

This was SVN commit r14050.
This commit is contained in:
JoshuaJB 2013-10-27 21:06:15 +00:00
parent 3173722099
commit e2f475b86a

View File

@ -283,14 +283,12 @@ function project_set_build_flags()
end
if arch == "arm" then
-- disable warnings about va_list ABI change
-- disable warnings about va_list ABI change and use
-- compile-time flags for futher configuration.
buildoptions { "-Wno-psabi" }
if _OPTIONS["android"] then
-- target generic arm CPUs with NEON
buildoptions { "-mtune=generic-arm -mfpu=neon -mfloat-abi=softfp" }
else
-- target Cortex-A15 CPUs with NEON
buildoptions { "-mtune=cortex-a15 -mfpu=neon-vfpv4 -mfloat-abi=hard" }
-- Android uses softfp, so we should too.
buildoptions { "-mfloat-abi=softfp" }
end
end