Skip to content

Commit 7fa4743

Browse files
committedAug 27, 2022
Add ccache only once
1 parent 98c9258 commit 7fa4743

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎libexec/platform

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,12 @@ fi
130130
# esac
131131

132132
if command -v ccache >/dev/null 2>&1; then
133-
if [ -n "${CC:-}" ]; then
133+
if [ -n "${CC:-}" ] && [ "${CC}" = "${CC#ccache}" ]; then
134134
CC="ccache ${CC}"
135135
CXX="ccache ${CXX}"
136136
fi
137137

138-
if [ -n "${CC_host:-}" ]; then
138+
if [ -n "${CC_host:-}" ] && [ "${CC_host}" = "${CC_host#ccache}" ]; then
139139
CC_host="ccache ${CC_host}"
140140
CXX_host="ccache ${CXX_host}"
141141
fi

0 commit comments

Comments
 (0)
Please sign in to comment.