forked from OSchip/llvm-project
Fix inaccurate comment about -fdelayed-template-parsing and MSVC
llvm-svn: 311899
This commit is contained in:
parent
edd66ab9dc
commit
ea2683ecb8
|
@ -3846,8 +3846,10 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
!IsWindowsMSVC || IsMSVC2015Compatible))
|
||||
CmdArgs.push_back("-fno-threadsafe-statics");
|
||||
|
||||
// -fno-delayed-template-parsing is default, except for Windows where MSVC STL
|
||||
// needs it.
|
||||
// -fno-delayed-template-parsing is default, except when targetting MSVC.
|
||||
// Many old Windows SDK versions require this to parse.
|
||||
// FIXME: MSVC introduced /Zc:twoPhase- to disable this behavior in their
|
||||
// compiler. We should be able to disable this by default at some point.
|
||||
if (Args.hasFlag(options::OPT_fdelayed_template_parsing,
|
||||
options::OPT_fno_delayed_template_parsing, IsWindowsMSVC))
|
||||
CmdArgs.push_back("-fdelayed-template-parsing");
|
||||
|
|
Loading…
Reference in New Issue