mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-03-24 04:45:12 +00:00
tests: build tests with fast math disabled
This commit is contained in:
parent
fcae9cd210
commit
9d6b028e01
|
@ -46,6 +46,13 @@ macro(add_sdl_test_executable TARGET)
|
||||||
target_compile_options(${TARGET} PRIVATE "/clang:-fcomment-block-commands=deprecated")
|
target_compile_options(${TARGET} PRIVATE "/clang:-fcomment-block-commands=deprecated")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(USE_GCC OR USE_CLANG)
|
||||||
|
check_c_compiler_flag(-fno-fast-math HAVE_GCC_FNO_FAST_MATH)
|
||||||
|
if(HAVE_GCC_FNO_FAST_MATH)
|
||||||
|
target_compile_options(${TARGET} PRIVATE -fno-fast-math)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
if(NOT TARGET SDL2::SDL2-static)
|
if(NOT TARGET SDL2::SDL2-static)
|
||||||
|
|
Loading…
Reference in a new issue