Skip to content

Commit 7b70208

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 c15afcd commit 7b70208

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ New Compiler Flags
276276
- New option ``-fno-sanitize-debug-trap-reasons`` added to disable emitting trap reasons into the debug info when compiling with trapping UBSan (e.g. ``-fsanitize-trap=undefined``).
277277
- New option ``-fsanitize-debug-trap-reasons=`` added to control emitting trap reasons into the debug info when compiling with trapping UBSan (e.g. ``-fsanitize-trap=undefined``).
278278
- New options for enabling allocation token instrumentation: ``-fsanitize=alloc-token``, ``-falloc-token-max=``, ``-fsanitize-alloc-token-fast-abi``, ``-fsanitize-alloc-token-extended``.
279-
279+
- The ``-resource-dir`` option is now displayed in the list of options shown by ``--help``.
280280

281281
Lanai Support
282282
^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)