mirror of
https://github.com/ElementsProject/lightning.git
synced 2026-08-13 12:32:55 +02:00
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>
9 lines
233 B
Bash
Executable file
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
|