diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-17 07:07:28 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-17 07:07:28 +0000 |
commit | 4656c53e125c90bd2ad0b8724efbb44dc042525d (patch) | |
tree | aefdef1750984971be4061289d6a59ec94ea3b43 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 0730e4f7e005addb6155d589c869469e791e3d45 (diff) | |
download | llvm-4656c53e125c90bd2ad0b8724efbb44dc042525d.zip llvm-4656c53e125c90bd2ad0b8724efbb44dc042525d.tar.gz llvm-4656c53e125c90bd2ad0b8724efbb44dc042525d.tar.bz2 |
Move -fnext-runtime defaulting to driver (and change clang-cc default to
-fnext-runtime), instead of using getDefaultLangOptions.
llvm-svn: 89058
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index c8e52fe..3537bc5 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -396,7 +396,8 @@ static void LangOptsToArgs(const LangOptions &Opts, Res.push_back(Opts.Exceptions ? "1" : "0"); Res.push_back("-frtti"); Res.push_back(Opts.Rtti ? "1" : "0"); - Res.push_back(Opts.NeXTRuntime ? "-fnext-runtime" : "-fgnu-runtime"); + if (!Opts.NeXTRuntime) + Res.push_back("-fgnu-runtime"); if (Opts.Freestanding) Res.push_back("-ffreestanding"); if (Opts.NoBuiltin) |