forked from nrfconnect/sdk-zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: Find a directory that could be used to cache files
To improve the build system's "clean build" runtime we need to cache files in a directory outside of the build directory. Caching files outside of the build directory is is already being done to a certain degree today. For instance, if a user has installed ccache it will cache files in $HOME/.ccache/. This commit locates a directory that is suitable for caching files in a cross-platform way. For instance on Linux this is believed to be $HOME, on Windows this is believed to be %LOCALAPPDATA%. If for whatever reason no environment variables are are found to be suitable we fall back to using $ZEPHYR_BASE/.cache/. For users that often use 'git -clean' the caching mechanism will not work as well, but it will at least be better than no caching at all. Signed-off-by: Sebastian Bøe <[email protected]>
- Loading branch information
1 parent
6c3a94c
commit 709daa2
Showing
3 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters