Describe the bug
When enabling /ZI flag (for edit and continue) and enabling debug symbols, in such a way:
set_symbols("debug", "hidden")
if (is_plat("windows")) then
add_cxxflags("/ZI")
end
both -Zi and /ZI options are passed to cl.exe, causing a D9025 warning (overriding '/Zi' with '/ZI'), this is a bit annoying.
Expected behavior
That only /ZI is passed to cl.exe.
Related Environment
- xmake version: xmake v2.3.8+202010172345
- os: Windows 10 2004
- target platform: Windows
Describe the bug
When enabling /ZI flag (for edit and continue) and enabling debug symbols, in such a way:
both -Zi and /ZI options are passed to cl.exe, causing a D9025 warning (overriding '/Zi' with '/ZI'), this is a bit annoying.
Expected behavior
That only /ZI is passed to cl.exe.
Related Environment