From 381ec2afbfdcdc42e3400f5370f9ce5202837948 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 4 Mar 2016 21:59:42 +0000 Subject: clang-cl: Enable PCH flags by default. Now that pragma comment and pragma detect_mismatch are implemented, this might just work. Some pragmas aren't serialized yet (from the top of my head: code_seg, bss_seg, data_seg, const_seg, init_seg, section, vtordisp), but these are as far as I know usually pushed and popped within the header and usually don't leak out. If it turns out the current PCH support isn't good enough yet, we can turn it off again. llvm-svn: 262749 --- clang/lib/Driver/Driver.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'clang/lib/Driver/Driver.cpp') diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index f8d6fc7770a..75dcfc96cd8 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -1503,14 +1503,6 @@ void Driver::BuildActions(Compilation &C, DerivedArgList &Args, Args.eraseArg(options::OPT__SLASH_Yu); YcArg = YuArg = nullptr; } - // FIXME: For now, only enable pch support if an internal flag is passed too. - // Remove this once pch support has stabilitzed. - if (!Args.hasArg(options::OPT__SLASH_internal_enable_pch)) { - Args.eraseArg(options::OPT__SLASH_Fp); - Args.eraseArg(options::OPT__SLASH_Yc); - Args.eraseArg(options::OPT__SLASH_Yu); - YcArg = YuArg = nullptr; - } // Construct the actions to perform. ActionList LinkerInputs; -- cgit v1.2.3