X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Fconfig.mk.in;h=d0e0ce11b86c63c0c7b4830c3e44182a171a1eb9;hb=15d621f7a93242d26d40bafb7ef000cf38f49285;hp=7bd91062fe60d27d88520cf8ad4c71f7ab5e14fb;hpb=f95d8f52cc86cf70f3762520cb37d392c330e6af;p=ghc-hetmet.git diff --git a/mk/config.mk.in b/mk/config.mk.in index 7bd9106..d0e0ce1 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -192,7 +192,7 @@ GhcCompilerWays= GhcHcOpts= # GhcWithHscBuiltViaC - build GHC compiler proper (\`hsc') from .hc files? -GhcWithHscBuiltViaC=NO +GhcWithHscBuiltViaC=@BootingFromHc@ # Build hsc with -O and turn optimising flag on when compiling # the intermediate C file @@ -249,11 +249,10 @@ else ifeq "$(strip $(way))" "mr" GhcLibHcOpts= -O else -ifeq "$(GhcWithHscBuiltViaC)" "NO" -GhcLibHcOpts= -O -split-objs -odir $* +ifeq "$(GhcWithHscBuiltViaC)" "YES" +GhcLibHcOpts=-O else -#NB: .hc files need to distributed in *unsplit* form. -GhcLibHcOpts= -O +GhcLibHcOpts=-O -split-objs -odir $* endif endif endif