[PATCH] D24069: Document option '-rtlib' in clang's man page and help info
Lei Zhang via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 31 23:16:04 PDT 2016
zlei edited reviewers, added: bruno; removed: cfe-commits.
zlei edited subscribers, added: cfe-commits; removed: bruno.
zlei updated this revision to Diff 69947.
zlei added a comment.
Update the man page entry to state default behavior of this option.
https://reviews.llvm.org/D24069
Files:
docs/CommandGuide/clang.rst
include/clang/Driver/Options.td
Index: include/clang/Driver/Options.td
===================================================================
--- include/clang/Driver/Options.td
+++ include/clang/Driver/Options.td
@@ -1860,7 +1860,8 @@
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.">;
Index: docs/CommandGuide/clang.rst
===================================================================
--- docs/CommandGuide/clang.rst
+++ docs/CommandGuide/clang.rst
@@ -105,7 +105,12 @@
.. 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24069.69947.patch
Type: text/x-patch
Size: 1277 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160901/d5731977/attachment.bin>
More information about the cfe-commits
mailing list