Add flag to request codeview debug info on Windows

Needed after fixing PR22032.

llvm-svn: 244162
This commit is contained in:
Reid Kleckner 2015-08-05 22:48:26 +00:00
parent 3cb15729af
commit 27dddfc118
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,8 @@ if compiler_id == "Clang":
# We assume that sanitizers should provide good enough error
# reports and stack traces even with minimal debug info.
config.debug_info_flags = ["-gline-tables-only"]
if platform.system() == 'Windows':
config.debug_info_flags.append("-gcodeview")
elif compiler_id == 'GNU':
config.cxx_mode_flags = ["-x c++"]
config.debug_info_flags = ["-g"]