Commit e5bc09bc authored by Ian Lynagh's avatar Ian Lynagh

Use SRC_HC_OPTS when making ghc-cabal and ghc-pkg

parent 3bc03ff9
......@@ -25,7 +25,7 @@ $(GHC_CABAL_INPLACE) : $(GHC_CABAL_DIR)/dist/build/tmp/ghc-cabal$(exeext)
$(GHC_CABAL_DIR)/dist/build/tmp/ghc-cabal$(exeext): $(GHC_CABAL_DIR)/ghc-cabal.hs $(MKDIRHIER)
$(MKDIRHIER) bootstrapping
$(MKDIRHIER) $(dir $@)
$(GHC) --make $(GHC_CABAL_DIR)/ghc-cabal.hs -o $@ \
$(GHC) $(SRC_HC_OPTS) --make $(GHC_CABAL_DIR)/ghc-cabal.hs -o $@ \
-Wall $(WERROR) \
-DCABAL_VERSION=$(CABAL_VERSION) \
-odir bootstrapping \
......
......@@ -49,7 +49,7 @@ endif
utils/ghc-pkg/dist/build/$(utils/ghc-pkg_dist_PROG)$(exeext): utils/ghc-pkg/Main.hs utils/ghc-pkg/Version.hs $(GHC_CABAL_INPLACE) $(MKDIRHIER)
$(MKDIRHIER) bootstrapping
$(MKDIRHIER) utils/ghc-pkg/dist/build
$(GHC) --make utils/ghc-pkg/Main.hs -o $@ \
$(GHC) $(SRC_HC_OPTS) --make utils/ghc-pkg/Main.hs -o $@ \
-Wall \
-DCABAL_VERSION=$(CABAL_VERSION) \
-odir bootstrapping \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment