X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FMakefile;h=7fab5fa068f0cfef02ffd74d0b33bd980ce05731;hb=b09ab92b65983635c68c8944631b1d53e9b71e42;hp=9af9671a0e11b81389c10425b3451d68913d7501;hpb=861cfcf09aba53e4bb20bfd1eaa23d7b5ba14e76;p=ghc-hetmet.git diff --git a/rts/Makefile b/rts/Makefile index 9af9671..7fab5fa 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)