Skip to content

Commit c21b428

Browse files
committed
Document runtime config directory options
1 parent ddae50d commit c21b428

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

clang/docs/UsersManual.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -944,10 +944,13 @@ treated as a file name and is searched for sequentially in the directories:
944944
- system directory,
945945
- the directory where Clang executable resides.
946946

947-
Both user and system directories for configuration files are specified during
948-
clang build using CMake parameters, ``CLANG_CONFIG_FILE_USER_DIR`` and
949-
``CLANG_CONFIG_FILE_SYSTEM_DIR`` respectively. The first file found is used.
950-
It is an error if the required file cannot be found.
947+
Both user and system directories for configuration files can be specified
948+
either during build or during runtime. At build time, use
949+
``CLANG_CONFIG_FILE_USER_DIR`` and ``CLANG_CONFIG_FILE_SYSTEM_DIR``. At run
950+
time use the ``--config-user-dir=`` and ``--config-system-dir=`` command line
951+
options. Specifying config directories at runtime overrides the config
952+
directories set at build time The first file found is used. It is an error if
953+
the required file cannot be found.
951954

952955
The default configuration files are searched for in the same directories
953956
following the rules described in the next paragraphs. Loading default

0 commit comments

Comments
 (0)