Index: llvm/trunk/utils/gn/build/BUILD.gn =================================================================== --- llvm/trunk/utils/gn/build/BUILD.gn +++ llvm/trunk/utils/gn/build/BUILD.gn @@ -34,7 +34,11 @@ ] } else { if (is_debug) { - cflags += [ "/Zi" ] + cflags += [ + "/Zi", + "/FS", + ] + ldflags += [ "/DEBUG" ] } else { cflags += [ "/O2", @@ -57,7 +61,7 @@ # The MSVC default value (1 MB) is not enough for parsing recursive C++ # templates in Clang. - ldflags = [ "/STACK:10000000" ] + ldflags += [ "/STACK:10000000" ] } # Warning setup.