Skip to content

Commit

Permalink
Fix: Avoid ifnan compilation issues for GBench
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Oct 30, 2023
1 parent 62c4901 commit fe3286f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ __pycache__
package-lock.json
node_modules

# for Google Benchmark
compare.py
gbench/

cmake_install.cmake
CMakeCache.txt

Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "^(Apple)?Clang$")
endif()
add_compile_options(-pedantic -ferror-limit=1)
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
add_compile_options(-march=native -pedantic -fmax-errors=1)
add_compile_options(-march=native -pedantic -fmax-errors=1 -Wno-tautological-constant-compare)
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "IntelLLVM")
add_compile_options(-w -ferror-limit=1)
endif()
Expand Down

0 comments on commit fe3286f

Please sign in to comment.