projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b426d31
)
Use "-x c" when compiling hc files
author
Ian Lynagh
<igloo@earth.li>
Sun, 3 May 2009 20:53:44 +0000
(20:53 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Sun, 3 May 2009 20:53:44 +0000
(20:53 +0000)
rules/hs-suffix-rules-srcdir.mk
patch
|
blob
|
history
diff --git
a/rules/hs-suffix-rules-srcdir.mk
b/rules/hs-suffix-rules-srcdir.mk
index
aaf22d6
..
72a24b2
100644
(file)
--- 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
# .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
$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 $$@
# $1/$2/build/%.$$($3_osuf) : $1/$2/build/%.$$($3_way_)hc
# $$($1_$2_HC) $$($1_$2_$3_ALL_HC_OPTS) -c $$< -o $$@