Build: Don't set DEFAULT_FLOATTEST for x86 MSVC
Newer versions of the 32-bit x86 Visual Studio compiler produce results compatible with FLOATTEST=no-fp-contract, so we can no longer intelligently set a default FLOATTEST value for that platform.
This commit is contained in:
@@ -909,10 +909,8 @@ if(CPU_TYPE STREQUAL "x86_64" OR CPU_TYPE STREQUAL "i386")
|
||||
set(DEFAULT_FLOATTEST sse)
|
||||
elseif(CPU_TYPE STREQUAL "x86_64")
|
||||
set(DEFAULT_FLOATTEST no-fp-contract)
|
||||
elseif(CPU_TYPE STREQUAL "i386" AND MSVC)
|
||||
set(DEFAULT_FLOATTEST msvc)
|
||||
# else we can't really set an intelligent default for i386. The appropriate
|
||||
# value could be 387, no-fp-contract, or fp-contract, depending on the
|
||||
# value could be no-fp-contract, fp-contract, 387, or msvc, depending on the
|
||||
# compiler and compiler options. We leave it to the user to set FLOATTEST
|
||||
# manually.
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user