Date: Tue, 10 Nov 2009 17:37:47 +0000 (UTC) From: Roman Divacky <rdivacky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r199146 - projects/clangbsd/contrib/llvm/tools/clang/lib/Driver Message-ID: <200911101737.nAAHbl1G066806@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rdivacky Date: Tue Nov 10 17:37:47 2009 New Revision: 199146 URL: http://svn.freebsd.org/changeset/base/199146 Log: Enter C++ mode in the driver when called as c++ or clang++. Modified: projects/clangbsd/contrib/llvm/tools/clang/lib/Driver/Driver.cpp Modified: projects/clangbsd/contrib/llvm/tools/clang/lib/Driver/Driver.cpp ============================================================================== --- projects/clangbsd/contrib/llvm/tools/clang/lib/Driver/Driver.cpp Tue Nov 10 17:37:01 2009 (r199145) +++ projects/clangbsd/contrib/llvm/tools/clang/lib/Driver/Driver.cpp Tue Nov 10 17:37:47 2009 (r199146) @@ -126,6 +126,10 @@ Compilation *Driver::BuildCompilation(in // FIXME: This stuff needs to go into the Compilation, not the driver. bool CCCPrintOptions = false, CCCPrintActions = false; + if (!strcmp(argv[0], "c++") || !strcmp(argv[0], "clang++")) { + CCCIsCXX = true; + } + const char **Start = argv + 1, **End = argv + argc; const char *HostTriple = DefaultHostTriple.c_str();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911101737.nAAHbl1G066806>