mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-19 21:01:05 -05: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());
|
this->LocalGenerator, Options::MasmCompiler, gg->GetMasmFlagTable());
|
||||||
Options& masmOptions = *pOptions;
|
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;
|
std::string flags;
|
||||||
this->LocalGenerator->AddLanguageFlags(flags, this->GeneratorTarget,
|
this->LocalGenerator->AddLanguageFlags(flags, this->GeneratorTarget,
|
||||||
cmBuildStep::Compile, "ASM_MASM",
|
cmBuildStep::Compile, "ASM_MASM",
|
||||||
|
|||||||
Reference in New Issue
Block a user