Skip to content

Commit

Permalink
Use /Zi for pdb
Browse files Browse the repository at this point in the history
and not /Z7 which is embedded.

Always produce .pdb, even RELEASE.

Signed-off-by: Jorgen Lundman <[email protected]>
  • Loading branch information
lundman committed Dec 12, 2023
1 parent f72904e commit 1b04006
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ add_compile_options(
-Wno-unused-local-typedef
-Wno-int-to-void-pointer-cast
# ZFS related
-Wno-misleading-indentation
-Wno-dangling-else
-Wno-missing-field-initializers
#-fms-extensions
-Wno-unused-function
Expand All @@ -73,10 +71,12 @@ else()
message(FATAL_ERROR "Unsupported architecture")
endif()

# Add .pdb debug symbols - always.
# /Z7 is embedded, /Zi is .pdb.
add_compile_options(/Zi)

if(CMAKE_BUILD_TYPE STREQUAL "Debug")
add_definitions(-DDBG -DZFS_DEBUG)
# Add .pdb debug symbols
add_compile_options(/Z7)
endif()

# Avoid dependency add_compile_definitions vcruntime140.dll
Expand Down

0 comments on commit 1b04006

Please sign in to comment.