Skip to content

Commit

Permalink
O2 for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
mariano54 authored and hoffmang9 committed Oct 1, 2020
1 parent 91c6549 commit 660a35f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,14 @@ FetchContent_Declare(
)
FetchContent_MakeAvailable(pybind11-src)

set (CMAKE_CXX_FLAGS "-g -O3 -Wall -std=c++1z")
set (CMAKE_C_FLAGS "-g -O3 -Wall")
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set (CMAKE_CXX_FLAGS "-g -O2 -Wall -std=c++1z")
set (CMAKE_C_FLAGS "-g -O2 -Wall")
else()
set (CMAKE_CXX_FLAGS "-g -O3 -Wall -std=c++1z")
set (CMAKE_C_FLAGS "-g -O3 -Wall")
endif()


set(BLAKE3_SRC
src/b3/blake3.c
Expand Down

0 comments on commit 660a35f

Please sign in to comment.