diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-01-03 17:13:05 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-01-03 17:13:05 +0000 |
commit | 787869b92920842219b567f46c71ac491c09f502 (patch) | |
tree | 00981756ea35f48c12993db158d864a427d40552 /clang/lib/Driver/Tools.cpp | |
parent | ad01b31b942517d1b3d4f190fd131f845c27ce34 (diff) | |
download | bcm5719-llvm-787869b92920842219b567f46c71ac491c09f502.tar.gz bcm5719-llvm-787869b92920842219b567f46c71ac491c09f502.zip |
Add -fno-modules to the driver, to turn off modules (although they're off by default anyway).
llvm-svn: 147449
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r-- | clang/lib/Driver/Tools.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index b7379e72ea8..566ea1edaa4 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -395,8 +395,6 @@ void Clang::AddPreprocessingOptions(Compilation &C, CmdArgs.push_back(Args.MakeArgString(DefaultModuleCache)); } - Args.AddAllArgs(CmdArgs, options::OPT_fmodules); - // Parse additional include paths from environment variables. // FIXME: We should probably sink the logic for handling these from the // frontend into the driver. It will allow deleting 4 otherwise unused flags. @@ -2023,6 +2021,9 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, CmdArgs.push_back("-fblocks-runtime-optional"); } + if (Args.hasFlag(options::OPT_fmodules, options::OPT_fno_modules, false)) + CmdArgs.push_back("-fmodules"); + // -faccess-control is default. if (Args.hasFlag(options::OPT_fno_access_control, options::OPT_faccess_control, |