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 | c5a97ec19408c3dca4b6a6385f11d8c783b94d0b (patch) | |
tree | f8eaf15cd47de7d078bfe70b2ce4d73b3f660688 /lib/Frontend | |
parent | 0be42c44f0199c5023b542d6a6d2e66eb594f27d (diff) |
Move -fnext-runtime defaulting to driver (and change clang-cc default to
-fnext-runtime), instead of using getDefaultLangOptions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89058 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend')
-rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index c8e52fe7cb..3537bc58da 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/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) |