scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit aff2954228ebe0e5bd04158caf3ea6bb5de26b7b
parent 2eaa363fe3e887276ee223ea94e241c7c0cc1e43
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat, 20 Jan 2024 08:09:50 +0100

tests/make: Add 0071-macro test

Diffstat:
Atests/make/execute/0071-macro.sh | 17+++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)

diff --git a/tests/make/execute/0071-macro.sh b/tests/make/execute/0071-macro.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT TERM + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +echo CC=pcc > $tmp2 + +CC=dcc MAKEFLAGS='-S CC=gcc' scc-make -f- CC=pcc <<'EOF' > $tmp1 2>&1 +CC=tcc + +all: + @echo CC=$(CC) +EOF + +diff $tmp1 $tmp2