Skip to content

Commit 128912c

Browse files
kirklandsignfacebook-github-bot
authored andcommitted
Fix Mac CI (#3740)
Summary: Pull Request resolved: #3740 Reviewed By: huydhn Differential Revision: D57797369 Pulled By: kirklandsign fbshipit-source-id: e41201077368c518b8f63ef4b5f88d1c9fb7eb2a
1 parent 5e9db9a commit 128912c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.ci/scripts/setup-macos.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ install_sccache() {
7777

7878
export PATH="${SCCACHE_PATH}:${PATH}"
7979

80+
# Create temp directory for sccache shims if TMP_DIR doesn't exist
81+
if [ -z "${TMP_DIR:-}" ]; then
82+
TMP_DIR=$(mktemp -d)
83+
trap 'rm -rfv ${TMP_DIR}' EXIT
84+
export PATH="${TMP_DIR}:$PATH"
85+
fi
86+
8087
write_sccache_stub "${TMP_DIR}/c++"
8188
write_sccache_stub "${TMP_DIR}/cc"
8289
write_sccache_stub "${TMP_DIR}/clang++"

0 commit comments

Comments
 (0)