changeset 956:d3c7e3e5c40b draft

Use -S to test full compiler flags.
author Roy Marples <roy@marples.name>
date Mon, 08 Sep 2008 08:19:06 +0000
parents 828e54f73394
children 2e99ade041ca
files mk/cc.mk
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mk/cc.mk	Sat Sep 06 19:41:05 2008 +0000
+++ b/mk/cc.mk	Mon Sep 08 08:19:06 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 -c -o /dev/null - >/dev/null 2>&1; \
+		${CC} $$f -S -xc -o /dev/null - ; \
 		then printf "%s" "$$f "; fi \
 		done; fi
 _CC_FLAGS!=	${_CC_FLAGS_SH}