Skip to content

Commit

Permalink
Add -fno-math-errno
Browse files Browse the repository at this point in the history
Resolves #18156.
  • Loading branch information
fp64 committed Sep 16, 2023
1 parent e829c97 commit e4af18b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Expand Up @@ -399,6 +399,8 @@ if(NOT MSVC)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -parallel -fopenmp")
endif()

add_definitions(-fno-math-errno)

if(X86 OR X86_64)
# enable sse2 code generation
add_definitions(-msse2)
Expand Down

0 comments on commit e4af18b

Please sign in to comment.