Skip to content

Commit

Permalink
CLang Win take 2
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul committed Jan 2, 2025
1 parent 3537ac6 commit f8aa575
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmake/compile-options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,16 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
$<$<BOOL:${USE_SANITIZER}>:-fsanitize=address>
$<$<BOOL:${USE_SANITIZER}>:-fsanitize=undefined>
)
if (UNIX AND NOT APPLE)
if (NOT APPLE)
add_compile_options(-march=nehalem)
endif()
endif()


if (WIN32)
add_compile_definitions(_CRT_SECURE_NO_WARNINGS=1)
endif()

if (MSVC)
add_compile_options(
# Set source and executable charsets to UTF-8
Expand Down

0 comments on commit f8aa575

Please sign in to comment.