[cfe-commits] r79859 - /cfe/trunk/lib/Driver/Driver.cpp

Daniel Dunbar daniel at zuster.org
Sun Aug 23 12:43:24 PDT 2009


Tanya, please take this for 2.6. Thanks!

 - Daniel

On Sun, Aug 23, 2009 at 11:42 AM, Daniel Dunbar<daniel at zuster.org> wrote:
> Author: ddunbar
> Date: Sun Aug 23 13:42:54 2009
> New Revision: 79859
>
> URL: http://llvm.org/viewvc/llvm-project?rev=79859&view=rev
> Log:
> Temporarily switch clang back to not using clang-cc by default for C++, and only
> using clang-cc on i386 and x86_64.
>
> Modified:
>    cfe/trunk/lib/Driver/Driver.cpp
>
> Modified: cfe/trunk/lib/Driver/Driver.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=79859&r1=79858&r2=79859&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/Driver/Driver.cpp (original)
> +++ cfe/trunk/lib/Driver/Driver.cpp Sun Aug 23 13:42:54 2009
> @@ -37,6 +37,9 @@
>  using namespace clang::driver;
>  using namespace clang;
>
> +// Used to set values for "production" clang, for releases.
> +#define USE_PRODUCTION_CLANG
> +
>  Driver::Driver(const char *_Name, const char *_Dir,
>                const char *_DefaultHostTriple,
>                const char *_DefaultImageName,
> @@ -46,10 +49,20 @@
>     DefaultImageName(_DefaultImageName),
>     Host(0),
>     CCCIsCXX(false), CCCEcho(false), CCCPrintBindings(false),
> -    CCCGenericGCCName("gcc"), CCCUseClang(true), CCCUseClangCXX(true),
> +    CCCGenericGCCName("gcc"), CCCUseClang(true),
> +#ifdef USE_PRODUCTION_CLANG
> +    CCCUseClangCXX(false),
> +#else
> +    CCCUseClangCXX(true),
> +#endif
>     CCCUseClangCPP(true), CCCUsePCH(true),
>     SuppressMissingInputWarning(false)
>  {
> +#ifdef USE_PRODUCTION_CLANG
> +  // Only use clang on i386 and x86_64 by default, in a "production" build.
> +  CCCClangArchs.insert("i386");
> +  CCCClangArchs.insert("x86_64");
> +#endif
>  }
>
>  Driver::~Driver() {
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>




More information about the cfe-commits mailing list