mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 10:50:16 -06:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user