Skip to content

Conflict between /Zi and /ZI #1051

@SirLynix

Description

@SirLynix

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions