未验证 提交 601a159f 编写于 作者: A Alexander Smorkalov 提交者: GitHub

Merge pull request #23881 from asmorkalov:as/fast_math_nan

Disable finite-math-only option with ENABLE_FAST_MATH=1 case to handle NaN and Inf checks correctly
......@@ -108,6 +108,7 @@ elseif(CV_ICC)
elseif(CV_GCC OR CV_CLANG)
if(ENABLE_FAST_MATH)
add_extra_compiler_option(-ffast-math)
add_extra_compiler_option(-fno-finite-math-only)
endif()
endif()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册