Skip to content

Commit

Permalink
Applied a workaround to fix some crashes and performance issues I not…
Browse files Browse the repository at this point in the history
…iced on Mac.
  • Loading branch information
kromenak committed Jul 22, 2023
1 parent 8307a02 commit fc2f8ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ if(MSVC)
/JMC # Enable "Just My Code" to skip system/library code when debugging
/MP # Multithreaded compiling - it's faster
)
elseif(APPLE)
target_compile_options(gk3 PRIVATE
$<$<CONFIG:RelWithDebInfo>:-O> # Workaround: currently seeing crashes and performance issues with -O2 optimization; use -O1 instead.
)
endif()

# Library locations/linking/copying.
Expand Down

0 comments on commit fc2f8ff

Please sign in to comment.