Update floating point compilation options
parent
56751882e6
commit
3f7bd9c13e
|
@ -6,6 +6,6 @@ function(EnableFastMath flag)
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
add_compile_options("/fp:fast")
|
add_compile_options("/fp:fast")
|
||||||
else()
|
else()
|
||||||
add_compile_options("-ffast-math")
|
add_compile_options("-ffast-math -fno-finite-math-only")
|
||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
if (NOT HAVE_FLOAT_CHARCONV)
|
if(NOT HAVE_FLOAT_CHARCONV)
|
||||||
set(CELCOMPAT_SOURCES
|
set(CELCOMPAT_SOURCES
|
||||||
charconv_impl.cpp
|
charconv_impl.cpp
|
||||||
charconv_impl.h
|
charconv_impl.h
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (CELCOMPAT_SOURCES)
|
if(CELCOMPAT_SOURCES)
|
||||||
add_library(celcompat OBJECT ${CELCOMPAT_SOURCES})
|
add_library(celcompat OBJECT ${CELCOMPAT_SOURCES})
|
||||||
|
if(NOT MSVC)
|
||||||
|
target_compile_options(celcompat PRIVATE -fmath-errno)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue