From c5a97ec19408c3dca4b6a6385f11d8c783b94d0b Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 17 Nov 2009 07:07:28 +0000 Subject: 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 --- lib/Frontend/CompilerInvocation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Frontend/CompilerInvocation.cpp') 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) -- cgit v1.2.3-18-g5258