Bug 1844925 - Error out when sccache is enabled but it can't actually be used. r=firefox-build-system-reviewers,ahochheiden

Differential Revision: https://phabricator.services.mozilla.com/D184436
This commit is contained in:
Mike Hommey 2023-07-25 01:11:04 +00:00
Родитель 6458b9a9e1
Коммит bc2d454559
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -87,4 +87,7 @@ if test -n "$bucket"; then
# Workaround for https://github.com/mozilla/sccache/issues/459#issuecomment-618756635
mk_add_options "export SCCACHE_MAX_FRAME_LENGTH=50000000"
mk_add_options MOZBUILD_MANAGE_SCCACHE_DAEMON=${MOZ_FETCHES_DIR}/sccache/sccache
elif test -n "$USE_SCCACHE"; then
echo "SetupError: sccache is enabled but there is no shared storage set up for it?" >&2
exit 1
fi