summaryrefslogtreecommitdiff
path: root/scripts/ci/ccache-c.in
blob: f75d456e5dbeccd223baf6a1a99ff5f1142dc2a3 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

# Xcode generator doesn't include the compiler as the
# first argument, Ninja and Makefiles do. Handle both cases.
if [[ "$1" = "${CMAKE_C_COMPILER}" ]] ; then
    shift
fi

exec "${C_LAUNCHER}" "${CMAKE_C_COMPILER}" "$@"