VS: Do not enable ASM_MASM debug information unless requested

MSBuild enables debug information with MASM by default, but for us
that is not consistent with behavior on other generators.
This commit is contained in:
Brad King
2022-12-15 11:53:40 -05:00
parent 98ba122a30
commit a9bd1e34ef

View File

@@ -3769,6 +3769,10 @@ bool cmVisualStudio10TargetGenerator::ComputeMasmOptions(
this->LocalGenerator, Options::MasmCompiler, gg->GetMasmFlagTable());
Options& masmOptions = *pOptions;
// MSBuild enables debug information by default.
// Disable it explicitly unless a flag parsed below re-enables it.
masmOptions.AddFlag("GenerateDebugInformation", "false");
std::string flags;
this->LocalGenerator->AddLanguageFlags(flags, this->GeneratorTarget,
cmBuildStep::Compile, "ASM_MASM",