By default, 'clang' emits dwarf and 'clang-cl' emits codeview. You can
force emission of one or both by passing -gcodeview and -gdwarf to
either driver.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/Driver/Tools.cpp | ||
---|---|---|
5276 | Would just Args.hasArg(options::OPT__SLASH_Z7) work? | |
test/CodeGen/dwarf-version.c | ||
11 | Maybe add %clang_cl invocations here? | |
test/Driver/cl-options.c | ||
365 | Is there a test for /Zi in here to update as well? | |
373 | Not sure if this list is exhaustive anymore, but might still be worth adding -gdwarf and -gcodeview here to codify that they're supposed to be exposed in clang-cl. |
test/CodeGen/dwarf-version.c | ||
---|---|---|
11 | I'd rather keep the %clang_cl tests in test/Driver, though. |
Would just Args.hasArg(options::OPT__SLASH_Z7) work?