Skip to content

Commit c15afcd

Browse files
author
Carlos Gálvez
committed
Make the 'resource-dir' flag public
Currently the "getter" flag '-print-resource-dir' is public, but the corresponding "setter" flag '-resource-dir' is not. This flag is useful when one is using clang on a non-standard location, or when one is building a libtooling-based tool (e.g. IWYU) based on a local clang build. In that case, we need to specify the correct path to the resource directory for things to work. Existing documentation already makes use of this flag, for example here: https://clang.llvm.org/docs/StandardCPlusPlusModules.html#possible-issues-failed-to-find-system-headers There is thus no reason to keep this flag hidden.
1 parent 7275256 commit c15afcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6122,7 +6122,7 @@ def rewrite_legacy_objc : Flag<["-"], "rewrite-legacy-objc">,
61226122
def rdynamic : Flag<["-"], "rdynamic">, Group<Link_Group>,
61236123
Visibility<[ClangOption, FlangOption]>;
61246124
def resource_dir : Separate<["-"], "resource-dir">,
6125-
Flags<[NoXarchOption, HelpHidden]>,
6125+
Flags<[NoXarchOption]>,
61266126
Visibility<[ClangOption, CC1Option, CLOption, DXCOption, FlangOption, FC1Option]>,
61276127
HelpText<"The directory which holds the compiler resource files">,
61286128
MarshallingInfoString<HeaderSearchOpts<"ResourceDir">>;

0 commit comments

Comments
 (0)