diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-04-03 20:51:31 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-04-03 20:51:31 +0000 |
commit | c2a7189048e08672584db5c2bef9570c88336151 (patch) | |
tree | d169a00dd922b63e1ac84201998a10c598b74de7 /clang/lib/Driver/Tools.cpp | |
parent | 53711b34ff14f6b747ee4045faae159ea6472d48 (diff) | |
download | bcm5719-llvm-c2a7189048e08672584db5c2bef9570c88336151.tar.gz bcm5719-llvm-c2a7189048e08672584db5c2bef9570c88336151.zip |
Driver: Explicitly ignore -fpch-preprocess when using clang, we don't
need to do anything special to support this.
llvm-svn: 68403
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r-- | clang/lib/Driver/Tools.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 16677439e9d..70daaf5a62f 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -415,6 +415,14 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, Args.MakeArgString(getToolChain().GetProgramPath(C, "clang-cc").c_str()); Dest.addCommand(new Command(Exec, CmdArgs)); + // Claim some arguments which clang supports automatically. + + // -fpch-preprocess is used with gcc to add a special marker in the + // -output to include the PCH file. Clang's PTH solution is + // -completely transparent, so we do not need to deal with it at + // -all. + Args.ClaimAllArgs(options::OPT_fpch_preprocess); + // Claim some arguments which clang doesn't support, but we don't // care to warn the user about. |