aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ccache/files/world-ccache.in
diff options
context:
space:
mode:
Diffstat (limited to 'devel/ccache/files/world-ccache.in')
-rw-r--r--devel/ccache/files/world-ccache.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/devel/ccache/files/world-ccache.in b/devel/ccache/files/world-ccache.in
new file mode 100644
index 000000000000..2b27aeefeb3f
--- /dev/null
+++ b/devel/ccache/files/world-ccache.in
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+[ "${0##*/}" = "ccache" ] &&
+printf "Please, use one of the compiler links in\n%%PREFIX%%/%%CCLINKDIR%%/world\nto invoke ccache\n" >&2 &&
+exit 1
+
+unset CCACHE_PATH
+export CCACHE_COMPILERCHECK=content
+exec %%PREFIX%%/%%CCLINKDIR%%/${0##*/} "$@"