From: Daniel Dunbar Date: Sat, 5 Dec 2009 00:13:59 +0000 (+0000) Subject: Unbreak -ccc-cxx and -ccc-clang-cxx defaulting. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5431e3563a64758584906cb9e0d10719a0756ec;p=clang Unbreak -ccc-cxx and -ccc-clang-cxx defaulting. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90629 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index 672c890549..c404e762b8 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -124,12 +124,13 @@ Compilation *Driver::BuildCompilation(int argc, const char **argv) { CCCPrintOptions = Args->hasArg(options::OPT_ccc_print_options); CCCPrintActions = Args->hasArg(options::OPT_ccc_print_phases); CCCPrintBindings = Args->hasArg(options::OPT_ccc_print_bindings); - CCCIsCXX = Args->hasArg(options::OPT_ccc_cxx); + CCCIsCXX = Args->hasArg(options::OPT_ccc_cxx) || CCCIsCXX; CCCEcho = Args->hasArg(options::OPT_ccc_echo); if (const Arg *A = Args->getLastArg(options::OPT_ccc_gcc_name)) CCCGenericGCCName = A->getValue(*Args); CCCUseClangCXX = Args->hasFlag(options::OPT_ccc_clang_cxx, - options::OPT_ccc_no_clang_cxx); + options::OPT_ccc_no_clang_cxx, + CCCUseClangCXX); CCCUsePCH = Args->hasFlag(options::OPT_ccc_pch_is_pch, options::OPT_ccc_pch_is_pth); CCCUseClang = !Args->hasArg(options::OPT_ccc_no_clang);