Skip to content

Commit

Permalink
Document option '-rtlib' in clang's man page and help info
Browse files Browse the repository at this point in the history
This patch adds an entry for "-rtlib" in the output of `man clang` and `clang -help`.

Patch by Lei Zhang!

Differential Revision: https://reviews.llvm.org/D24069

llvm-svn: 281440
  • Loading branch information
Jonas Hahnfeld authored and Jonas Hahnfeld committed Sep 14, 2016
1 parent 2466239 commit 79e0093
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion clang/docs/CommandGuide/clang.rst
Expand Up @@ -105,7 +105,12 @@ Language Selection and Mode Options
.. option:: -stdlib=<library>

Specify the C++ standard library to use; supported options are libstdc++ and
libc++.
libc++. If not specified, platform default will be used.

.. option:: -rtlib=<library>

Specify the compiler runtime library to use; supported options are libgcc and
compiler-rt. If not specified, platform default will be used.

.. option:: -ansi

Expand Down
3 changes: 2 additions & 1 deletion clang/include/clang/Driver/Options.td
Expand Up @@ -1863,7 +1863,8 @@ def resource_dir : Separate<["-"], "resource-dir">,
def resource_dir_EQ : Joined<["-"], "resource-dir=">, Flags<[DriverOption]>,
Alias<resource_dir>;
def rpath : Separate<["-"], "rpath">, Flags<[LinkerInput]>;
def rtlib_EQ : Joined<["-", "--"], "rtlib=">;
def rtlib_EQ : Joined<["-", "--"], "rtlib=">,
HelpText<"Compiler runtime library to use">;
def r : Flag<["-"], "r">, Flags<[LinkerInput,NoArgumentUnused]>;
def save_temps_EQ : Joined<["-", "--"], "save-temps=">, Flags<[DriverOption]>,
HelpText<"Save intermediate compilation results.">;
Expand Down

0 comments on commit 79e0093

Please sign in to comment.