xcode-launch-c.in 319 B

1234567891011
  1. #!/bin/sh
  2. # https://crascit.com/2016/04/09/using-ccache-with-cmake/
  3. # Xcode generator doesn't include the compiler as the
  4. # first argument, Ninja and Makefiles do. Handle both cases.
  5. if [[ "$1" = "${CMAKE_C_COMPILER}" ]] ; then
  6. shift
  7. fi
  8. export CCACHE_CPP2=true
  9. exec "${CCACHE_PROGRAM}" "${CMAKE_C_COMPILER}" "$@"