Generate CodeView debug information for .asm files (#77084)
authorAustin Wise <AustinWise@gmail.com>
Tue, 3 Jan 2023 21:20:55 +0000 (13:20 -0800)
committerGitHub <noreply@github.com>
Tue, 3 Jan 2023 21:20:55 +0000 (13:20 -0800)
eng/native/configurecompiler.cmake

index d9443ce6ddfc46d4747958c3a672c92a78f050a7..51e8384413750f8b45b6776e65035d8775bd5dfd 100644 (file)
@@ -676,7 +676,7 @@ if (MSVC)
   # Set Warning Level 4:
   add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/w44177>) # Pragma data_seg s/b at global scope.
 
-  add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/Zi>) # enable debugging information
+  add_compile_options($<$<COMPILE_LANGUAGE:C,CXX,ASM_MASM>:/Zi>) # enable debugging information
   add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/ZH:SHA_256>) # use SHA256 for generating hashes of compiler processed source files.
   add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/source-charset:utf-8>) # Force MSVC to compile source as UTF-8.