Browse Source

Respect the ToolSetToUse options and assign a default to MSCVersion if none is requested since it is needed to make Clang define _MSC_VER.

pull/22/merge
triton 12 years ago
parent
commit
067ff9f57f
  1. 5
      src/Parser/Parser.cpp

5
src/Parser/Parser.cpp

@ -184,6 +184,11 @@ void Parser::SetupHeader()
/*IgnoreSysRoot=*/false); /*IgnoreSysRoot=*/false);
} }
if (Opts->MicrosoftMode)
{
LangOpts.MSCVersion = Opts->ToolSetToUse;
if (!LangOpts.MSCVersion) LangOpts.MSCVersion = 1700;
}
#endif #endif
// Enable preprocessing record. // Enable preprocessing record.

Loading…
Cancel
Save