Skip to content

Commit 2ade3aa

Browse files
authored
[mono] Set /DEBUGTYPE:CV,FIXUP on binaries (#99282)
This fixes an issue with running APIScan on mono-aot-cross.exe
1 parent 2e1bde2 commit 2ade3aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mono/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ elseif(CLR_CMAKE_HOST_OS STREQUAL "windows")
288288
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/Zi>) # enable debugging information
289289
add_link_options(/LTCG) # link-time code generation
290290
add_link_options(/DEBUG) # enable debugging information
291+
add_link_options(/DEBUGTYPE:CV,FIXUP) # enable fixup debug information
291292
add_link_options(/OPT:REF) # optimize: remove unreferenced functions & data
292293
add_link_options(/OPT:ICF) # optimize: enable COMDAT folding
293294
# the combination of /Zi compiler flag and /DEBUG /OPT:REF /OPT:ICF

0 commit comments

Comments
 (0)