diff --git a/ghc/driver/Makefile b/ghc/driver/Makefile index e6b7fec6e98aab519e1024349ce9679b3de205df..d8c3ccc689a1ed8aca8c8710ca79ac2bbfbd6076 100644 --- a/ghc/driver/Makefile +++ b/ghc/driver/Makefile @@ -45,8 +45,8 @@ SCRIPT_SUBST_VARS := \ GHC_LIB_DIR GHC_RUNTIME_DIR GHC_UTILS_DIR GHC_INCLUDE_DIR \ GHC_OPT_HILEV_ASM GhcWithNativeCodeGen LeadingUnderscore\ GHC_UNLIT GHC_HSCPP GHC_HSC GHC_SYSMAN EnableWin32DLLs \ - CP RM CONTEXT_DIFF LibGmp \ - $(USER_WAY_NAMES) $(USER_WAY_OPTS) + CP RM CONTEXT_DIFF LibGmp GhcWithRegisterised \ + USER_WAY_NAMES USER_WAY_OPTS # # When creating a binary distribution, we prefix the driver script diff --git a/ghc/driver/ghc.lprl b/ghc/driver/ghc.lprl index 95033399df76fd323ba3d9bcdf09c1afcbcbf838..745f9688124537aa11393c64e923f33eba430f54 100644 --- a/ghc/driver/ghc.lprl +++ b/ghc/driver/ghc.lprl @@ -120,6 +120,8 @@ WAY_*_NAME WAY_*_REAL_OPTS LeadingUnderscore +GhcWithRegisterised + \end{verbatim} Establish what executables to run for the various phases, what the @@ -478,7 +480,7 @@ $UNPROFscc_auto = ''; # set to relevant hsc flag if forcing auto sccs without pr $TICKYing = ''; # set to t if compiling for ticky-ticky profiling $PARing = ''; # set to p if compiling for PAR $GRANing = ''; # set to g if compiling for GRAN -$UNREGing = ''; # set to u if compiling unregisterised +$UNREGing = ($GhcWithRegisterised eq 'YES') ? '' : 'u'; $Specific_hi_file = ''; # set by -ohi <file>; "-" for stdout $Specific_dump_file = ''; # set by -odump <file>; "-" for stdout $Using_dump_file = 0; @@ -908,7 +910,6 @@ sub setupBuildFlags { } elsif ( $UNREGing eq 'u' ) { $BuildTag = '_u'; } - \end{code} After the sanity checks, add flags to the necessary parts of the driver pipeline: diff --git a/mk/config.mk.in b/mk/config.mk.in index 901b2d1dc8c5b74ce3f8915f61ff63246d182948..1bae84b0cc85f31bdd46cd717ab6815c679a5a1b 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -183,7 +183,7 @@ GhcUseGccForOptAsm=YES GhcUseGccForDebuggingAsm=YES # Build a registerised version of hsc and runtime -# (you'd be desperate or silly not to). +# (unregisterised used for Hugs at the moment) GhcWithRegisterised=YES # Build a compiler with a native code generator backend