Skip to content

Commit 4c70092

Browse files
authored
Note explaining profile determination order (#4125)
1 parent 3599bbd commit 4c70092

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

reference/config_files/profiles.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,18 @@ The ``include()`` statement has to be at the top of the profile file:
864864
zlib/*:compiler.libcxx=libstdc++11
865865
866866
867+
.. note::
868+
869+
Cache profiles have more priority than the ones in the current working
870+
directory, so if you have a profile named ``myprofile`` in the cache, it will
871+
be used instead of the one in the current working directory.
872+
873+
To use the profile in the current working directory, you can use:
874+
875+
- ``-pr ./myprofile`` option in the command line or
876+
- ``include(./myprofile)`` in the profile file itself.
877+
878+
867879
The final result of using *myprofile* is:
868880

869881
.. code-block:: text

0 commit comments

Comments
 (0)