changeset 952:e7d13ecba805 draft

Tests now work with gcc and pcc.
author Roy Marples <roy@marples.name>
date Sat, 06 Sep 2008 18:24:27 +0000
parents 23362251acd3
children 0aaa42617924
files mk/cc.mk
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mk/cc.mk	Sat Sep 06 15:53:31 2008 +0000
+++ b/mk/cc.mk	Sat Sep 06 18:24:27 2008 +0000
@@ -21,7 +21,7 @@
 		-Wdeclaration-after-statement -Wsequence-point
 _CC_FLAGS_SH=	if ! test -d .git; then echo ""; else for f in ${_CCFLAGS}; do \
 		if echo "int main(void) { return 0;} " | \
-		${CC} $$f - -E -o /dev/null >/dev/null 2>&1; \
+		${CC} $$f -E -c -o /dev/null - >/dev/null 2>&1; \
 		then printf "%s" "$$f "; fi \
 		done; fi
 _CC_FLAGS!=	${_CC_FLAGS_SH}