Skip to content

Commit

Permalink
Run CI with clang as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteHamster committed Dec 3, 2024
1 parent a763036 commit 5c84bae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,8 @@ if(NOT TARGET PTHASH)
target_include_directories(PTHASH INTERFACE .)

target_compile_features(PTHASH INTERFACE cxx_std_17)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
target_compile_options(PTHASH INTERFACE -stdlib=libc++)
endif()

MESSAGE(STATUS "Compiling for processor: " ${CMAKE_HOST_SYSTEM_PROCESSOR})

if (UNIX AND (CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64"))
MESSAGE(STATUS "Compiling with flags: -march=native -mbmi2 -msse4.2")
target_compile_options(PTHASH INTERFACE -march=native)
Expand Down
2 changes: 1 addition & 1 deletion external/bits

0 comments on commit 5c84bae

Please sign in to comment.