From 9b3e4c5895692eaa62ab2dbc14ecc3883980d997 Mon Sep 17 00:00:00 2001 From: "Avi Halachmi (:avih)" Date: Sat, 24 Dec 2016 20:59:06 +0200 Subject: [PATCH] tests: don't assume $(CC) is gcc This also allows self hosting + testing when $(CC) is tcc. --- tests/pp/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/pp/Makefile b/tests/pp/Makefile index 0b96caa..314f13f 100644 --- a/tests/pp/Makefile +++ b/tests/pp/Makefile @@ -32,10 +32,10 @@ FILTER = 2>&1 | sed 's,$(SRC)/,,g' # automatically generate .expect files with gcc: %.expect: %.c - gcc -E -P $< >$*.expect 2>&1 + $(CC) -E -P $< >$*.expect 2>&1 %.expect: %.S - gcc -E -P $< >$*.expect 2>&1 + $(CC) -E -P $< >$*.expect 2>&1 # tell make not to delete .PRECIOUS: %.expect