Driver help output for --sysroot.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Jun 10 05:18:07 PDT 2014


Shouldn't the help text go in _sysroot_EQ?

On 10 June 2014 07:23, Iain Sandoe <iain at codesourcery.com> wrote:
> Is there some reason we don't want to own up to having the --sysroot option ?
>
> If not - then how about the following?
> Iain
>
>
> diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td
> index 9d4ff4d..17c720e 100644
> --- a/clang/include/clang/Driver/Options.td
> +++ b/clang/include/clang/Driver/Options.td
> @@ -1491,7 +1491,9 @@ def _signed_char : Flag<["--"], "signed-char">, Alias<fsigned_char>;
>  def _std : Separate<["--"], "std">, Alias<std_EQ>;
>  def _stdlib : Separate<["--"], "stdlib">, Alias<stdlib_EQ>;
>  def _sysroot_EQ : Joined<["--"], "sysroot=">;
> -def _sysroot : Separate<["--"], "sysroot">, Alias<_sysroot_EQ>;
> +def _sysroot : Separate<["--"], "sysroot">, Alias<_sysroot_EQ>,
> +  HelpText<"Use <dir> as the root directory for headers and libraries">,
> +  MetaVarName<"<dir>">;
>  def _target_help : Flag<["--"], "target-help">;
>  def _trace_includes : Flag<["--"], "trace-includes">, Alias<H>;
>  def _undefine_macro_EQ : Joined<["--"], "undefine-macro=">, Alias<U>;
>
>
> _______________________________________________
> 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