From c4a59717419e244aeba534721beb14e8691ed0fa Mon Sep 17 00:00:00 2001 From: PerseoGI Date: Wed, 11 Jun 2025 17:12:57 +0200 Subject: [PATCH] Note explaining profile determination order --- reference/config_files/profiles.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/reference/config_files/profiles.rst b/reference/config_files/profiles.rst index 6aedc9009b5d..8717ed0067af 100644 --- a/reference/config_files/profiles.rst +++ b/reference/config_files/profiles.rst @@ -836,6 +836,18 @@ The ``include()`` statement has to be at the top of the profile file: zlib/*:compiler.libcxx=libstdc++11 +.. note:: + + Cache profiles have more priority than the ones in the current working + directory, so if you have a profile named ``myprofile`` in the cache, it will + be used instead of the one in the current working directory. + + To use the profile in the current working directory, you can use: + + - ``-pr ./myprofile`` option in the command line or + - ``include(./myprofile)`` in the profile file itself. + + The final result of using *myprofile* is: .. code-block:: text