[clang] 232c601 - [Driver] Update clang -B help message

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 27 19:05:15 PST 2022


Author: Fangrui Song
Date: 2022-01-27T19:05:10-08:00
New Revision: 232c601676a2940934d037b8c38efc24a2e269b1

URL: https://github.com/llvm/llvm-project/commit/232c601676a2940934d037b8c38efc24a2e269b1
DIFF: https://github.com/llvm/llvm-project/commit/232c601676a2940934d037b8c38efc24a2e269b1.diff

LOG: [Driver] Update clang -B help message

* After 3452a0d8c17f7166f479706b293caf6ac76ffd90 (2020-07), $prefix/$triple-$file is not searched.
* Unlike GCC, -B is not used for include paths. Seems nobody needs this behavior because there are more targeted options like --sysroot/-isystem

Added: 
    

Modified: 
    clang/include/clang/Driver/Options.td

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td
index b3de12e8c7b52..fbdac93a8313d 100644
--- a/clang/include/clang/Driver/Options.td
+++ b/clang/include/clang/Driver/Options.td
@@ -638,8 +638,8 @@ def _DASH_DASH : Option<["--"], "", KIND_REMAINING_ARGS>,
     Flags<[NoXarchOption, CoreOption]>;
 def A : JoinedOrSeparate<["-"], "A">, Flags<[RenderJoined]>, Group<gfortran_Group>;
 def B : JoinedOrSeparate<["-"], "B">, MetaVarName<"<prefix>">,
-    HelpText<"Search $prefix/$triple-$file and $prefix$file for executables, libraries, "
-    "includes, and data files used by the compiler. $prefix may or may not be a directory">;
+    HelpText<"Search $prefix$file for executables, libraries, and data files. "
+    "If $prefix is a directory, search $prefix/$file">;
 def gcc_toolchain : Joined<["--"], "gcc-toolchain=">, Flags<[NoXarchOption]>,
   HelpText<"Search for GCC installation in the specified directory on targets which commonly use GCC. "
   "The directory usually contains 'lib{,32,64}/gcc{,-cross}/$triple' and 'include'. If specified, "


        


More information about the cfe-commits mailing list