We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
That only /ZI is passed to cl.exe.
The text was updated successfully, but these errors were encountered:
I will look at it.
Sorry, something went wrong.
I have improve set_symbols to support /Zi, /Zi and /Z7 on dev branch. You do not need to specify additional add_cxxflags("/ZI")
set_symbols
/Zi
/Z7
add_cxxflags("/ZI")
set_symbols("debug") --> /Zi /Fdxxx.pdb set_symbols("debug", "edit") --> /ZI /Fdxxx.pdb set_symbols("debug", "embed") --> /Z7
edit and embed levels only for msvc, gcc/clang will ignore it and only use debug level.
edit
embed
debug
So you only need set set_symbols("debug", "edit", "hidden")
set_symbols("debug", "edit", "hidden")
Thank you!
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: