2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-02-04 17:50:36 +03:00

ICC: Use -fp-model precise for ANSI/IEEE standards compliance

This commit is contained in:
s1lent 2017-12-15 02:15:59 +07:00
parent 6994b32f25
commit 8249802a70
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C

View File

@ -66,6 +66,10 @@ rootProject.ext.createIccConfig = { boolean release, BinaryKind binKind ->
)
}
// ICC uses -fp-model fast=1 by default for more aggressive optimizations on floating-point calculations
// https://software.intel.com/en-us/node/522979#GUID-99936BBA-1508-4E9F-AC09-FA98613CE2F5
cfg.compilerOptions.args('-fp-model=precise');
cfg.singleDefines('LINUX', '_LINUX')
return cfg
}