Skip to content

Commit

Permalink
Prevent pre-include of clang-upc.h if pre-processed input file is
Browse files Browse the repository at this point in the history
specified.
  • Loading branch information
Nenad Vukicevic committed Apr 9, 2014
1 parent 7b03b32 commit 3364b0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Frontend/CompilerInvocation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1479,7 +1479,9 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK,
Opts.Optimize = Opt != 0;
Opts.OptimizeSize = OptSize != 0;

if (Opts.UPC && !Args.hasArg(OPT_fno_upc_pre_include))
// By default enable UPC pre-include
if (Opts.UPC && !Args.hasArg(OPT_fno_upc_pre_include) &&
(IK != IK_PreprocessedUPC))
Opts.UPCPreInclude = true;

if (Opts.UPC &&
Expand Down

0 comments on commit 3364b0b

Please sign in to comment.