X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fghc.mk;h=2f505cf0c7157120fa033700c690d279028ac75a;hb=f5b3f16c9321a1594ce1ed0b73914feabaa321a8;hp=4c78e7fecbc7ae8d9281a25f52b867bd6f583be7;hpb=f65bf7559b3e92607cfcf7a334e9994891dd9c32;p=ghc-hetmet.git diff --git a/ghc/ghc.mk b/ghc/ghc.mk index 4c78e7f..2f505cf 100644 --- a/ghc/ghc.mk +++ b/ghc/ghc.mk @@ -89,6 +89,12 @@ ghc_stage3_SHELL_WRAPPER_NAME = ghc/ghc.wrapper ghc_stage$(INSTALL_GHC_STAGE)_INSTALL_SHELL_WRAPPER = YES ghc_stage$(INSTALL_GHC_STAGE)_INSTALL_SHELL_WRAPPER_NAME = ghc-$(ProjectVersion) +# We override the program name to be ghc, rather than ghc-stage2. +# This means the right program name is used in error messages etc. +define ghc_stage$(INSTALL_GHC_STAGE)_INSTALL_SHELL_WRAPPER_EXTRA +echo 'executablename="$$$$exedir/ghc"' >> "$$(WRAPPER)" +endef + # stage 1 is enabled unless $(stage) is set to something other than 1 ifeq "$(filter-out 1,$(stage))" "" $(eval $(call build-prog,ghc,stage1,0))