Skip to content

Commit

Permalink
build: Exorcise demons from the clang-cl build
Browse files Browse the repository at this point in the history
Co-authored-by: John Tur <[email protected]>
  • Loading branch information
jcm93 and reflectronic committed Dec 26, 2024
1 parent e7014d3 commit 97f8f1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/windows/compilerconfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,10 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
# generate PDBs rather than embed debug symbols
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT ProgramDatabase)
add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:${_ares_msvc_cxx_options}>")
# kill
add_compile_options($<$<AND:$<BOOL:${ENABLE_IPO}>,$<NOT:$<CONFIG:Debug>>>:-flto=thin>)
add_link_options(
$<$<NOT:$<CONFIG:Debug>>:/LTCG>
$<$<AND:$<BOOL:${ENABLE_IPO}>,$<NOT:$<CONFIG:Debug>>>:-flto=thin>
$<$<NOT:$<CONFIG:Debug>>:/INCREMENTAL:NO>
/Debug
$<$<NOT:$<CONFIG:Debug>>:/OPT:REF>
Expand Down

0 comments on commit 97f8f1e

Please sign in to comment.