cln/devtools/cc-nobuild
Rusty Russell b1031e5637 Makefile: support overriding of CC and CARGO for catching unintended builds.
For CI we want to make sure we don't rebuild.  CC=false doesn't work because
we reply on the output of "$CC -dumpmachine" for the external build directory.

So we would use:

	make CC=devtools/cc-nobuild CARGO=false

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2026-02-24 11:54:04 +10:30

9 lines
233 B
Bash
Executable file

#! /bin/sh
# Version of CC which only supports -dumpmachine (for external/Makefile), and fails otherwise
set -e
if [ x"$*" = x"-dumpmachine" ]; then
CC="$(grep ^CC= config.vars | cut -d= -f2-)"
exec ${CC:=cc} "$@"
fi
exit 1