Skip to content

Commit

Permalink
try G opts
Browse files Browse the repository at this point in the history
  • Loading branch information
hmacdope committed Aug 6, 2024
1 parent 468d9ce commit 46a2aab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libdistopia/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ target_include_directories(libdistopia PUBLIC
${CMAKE_CURRENT_LIST_DIR}
"${CMAKE_CURRENT_LIST_DIR}/include")

# if (MSVC)
# target_compile_options(libdistopia PUBLIC /arch:AVX2 /Gv)
# endif()

if (DISTOPIA_LIBDISTOPIA_SUPRESS_MSVC_OPT) # causes compiler crash on MSVC on GHA
message(STATUS "Supressing MSVC optimisations in libdistopia")
message(WARNING "This should only be used for testing and debugging purposes")
if (MSVC)
target_compile_options(libdistopia PRIVATE /O1)
target_compile_options(libdistopia PRIVATE /Od /Gv /GF /Gy)
endif()
endif()

Expand Down

0 comments on commit 46a2aab

Please sign in to comment.