From: Ian Lynagh Date: Sun, 3 May 2009 20:53:44 +0000 (+0000) Subject: Use "-x c" when compiling hc files X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=fec28e66439061918ff1411be5b13f565e2e5bbc Use "-x c" when compiling hc files --- diff --git a/rules/hs-suffix-rules-srcdir.mk b/rules/hs-suffix-rules-srcdir.mk index aaf22d6..72a24b2 100644 --- a/rules/hs-suffix-rules-srcdir.mk +++ b/rules/hs-suffix-rules-srcdir.mk @@ -55,10 +55,10 @@ endif # .hs->.o rule, I don't know why --SDM $1/$2/build/%.$$($3_osuf) : $1/$4/%.hc - $$(CC) $$($1_$2_$3_ALL_CC_OPTS) -c $$< -o $$@ + $$(CC) $$($1_$2_$3_ALL_CC_OPTS) -x c -c $$< -o $$@ $1/$2/build/%.$$($3_osuf) : $1/$2/build/%.hc - $$(CC) $$($1_$2_$3_ALL_CC_OPTS) -c $$< -o $$@ + $$(CC) $$($1_$2_$3_ALL_CC_OPTS) -x c -c $$< -o $$@ # $1/$2/build/%.$$($3_osuf) : $1/$2/build/%.$$($3_way_)hc # $$($1_$2_HC) $$($1_$2_$3_ALL_HC_OPTS) -c $$< -o $$@