[cfe-commits] r83377 - in /cfe/trunk: include/clang/Driver/Options.def lib/Driver/Tools.cpp

Daniel Dunbar daniel at zuster.org
Sat Oct 17 02:25:54 PDT 2009


Hi Rafeal,

On Tue, Oct 6, 2009 at 5:45 AM, Rafael Espindola
<rafael.espindola at gmail.com> wrote:
> Author: rafael
> Date: Tue Oct  6 07:45:37 2009
> New Revision: 83377
>
> URL: http://llvm.org/viewvc/llvm-project?rev=83377&view=rev
> Log:
> Add the -nostdclanginc option to clang (the driver).

I'm ambivalent about adding options which are needless clang specific,
since we share the interface with gcc. Would it make sense to name
this something more generic (which would make sense for gcc as well),
e.g., -nobuiltininc?

 - Daniel

>
> Modified:
>    cfe/trunk/include/clang/Driver/Options.def
>    cfe/trunk/lib/Driver/Tools.cpp
>
> Modified: cfe/trunk/include/clang/Driver/Options.def
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Options.def?rev=83377&r1=83376&r2=83377&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Driver/Options.def (original)
> +++ cfe/trunk/include/clang/Driver/Options.def Tue Oct  6 07:45:37 2009
> @@ -566,6 +566,7 @@
>  OPTION("-noprebind", noprebind, Flag, INVALID, INVALID, "", 0, 0, 0)
>  OPTION("-noseglinkedit", noseglinkedit, Flag, INVALID, INVALID, "", 0, 0, 0)
>  OPTION("-nostartfiles", nostartfiles, Flag, INVALID, INVALID, "", 0, 0, 0)
> +OPTION("-nostdclanginc", nostdclanginc, Flag, INVALID, INVALID, "", 0, 0, 0)
>  OPTION("-nostdinc", nostdinc, Flag, INVALID, INVALID, "", 0, 0, 0)
>  OPTION("-nostdlib", nostdlib, Flag, INVALID, INVALID, "", 0, 0, 0)
>  OPTION("-object", object, Flag, INVALID, INVALID, "", 0, 0, 0)
>
> Modified: cfe/trunk/lib/Driver/Tools.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=83377&r1=83376&r2=83377&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/Driver/Tools.cpp (original)
> +++ cfe/trunk/lib/Driver/Tools.cpp Tue Oct  6 07:45:37 2009
> @@ -726,6 +726,7 @@
>     CmdArgs.push_back("-g");
>
>   Args.AddLastArg(CmdArgs, options::OPT_nostdinc);
> +  Args.AddLastArg(CmdArgs, options::OPT_nostdclanginc);
>
>   Args.AddLastArg(CmdArgs, options::OPT_isysroot);
>
>
>
> _______________________________________________
> 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