diff options
author | Ian Lynagh <igloo@earth.li> | 2007-08-24 22:23:17 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2007-08-24 22:23:17 +0000 |
commit | 49b8105e8d56c90099234e31c32ba3f1643276fe (patch) | |
tree | 01d11dff9c5afd8daf3bfd9a021b9c8848f28223 /rts/Makefile | |
parent | 32f2ee11b7288a53b89ea81ebdf4f8a74b707fed (diff) | |
download | haskell-49b8105e8d56c90099234e31c32ba3f1643276fe.tar.gz |
Jump through some hoops to make the Windows SEH exception stuff happy
Diffstat (limited to 'rts/Makefile')
-rw-r--r-- | rts/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rts/Makefile b/rts/Makefile index 9af9671a0e..7fab5fa068 100644 --- a/rts/Makefile +++ b/rts/Makefile @@ -156,6 +156,12 @@ else DQ = \" endif +# If Main.c is built with optimisation then the SEH exception stuff on +# Windows gets confused. +# This has to be in HC rather than CC opts, as otherwise there's a +# -optc-O2 that comes after it. +Main_HC_OPTS += -optc-O0 + RtsMessages_CC_OPTS += -DProjectVersion=$(DQ)$(ProjectVersion)$(DQ) RtsUtils_CC_OPTS += -DProjectVersion=$(DQ)$(ProjectVersion)$(DQ) RtsUtils_CC_OPTS += -DRtsWay=$(DQ)rts$(_way)$(DQ) |