Skip to content

Commit

Permalink
add ltcg flag to msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
jadebenn authored Jan 30, 2024
1 parent ec6a9f2 commit 554a960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ if(UNIX)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -O2 -fPIC")
elseif(MSVC)
# Set MSVC-specific optimization flags and skip warning for invalid conversion from size_t to uint32_t for all targets below
add_compile_options("/O2" "/Oi" "/GL" "/Zc:inline" "/permissive-" "/wd4267" "/utf-8")
add_compile_options("/O2" "/Oi" "/GL" "/LTCG" "/Zc:inline" "/permissive-" "/wd4267" "/utf-8")
elseif(WIN32)
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
endif()
Expand Down

0 comments on commit 554a960

Please sign in to comment.