[project @ 1999-06-16 09:33:10 by simonmar]
authorsimonmar <unknown>
Wed, 16 Jun 1999 09:33:14 +0000 (09:33 +0000)
committersimonmar <unknown>
Wed, 16 Jun 1999 09:33:14 +0000 (09:33 +0000)
Make use of the $(GhcWithRegisterised) build flag from config.mk.  You
can now get an unregisterised build by *either*

- setting GhcWithRegisterised to NO in build.mk, or
- adding 'u' to GhcLibWays.

The former will make all compilations unregisterised, whereas the
latter will require a '-unreg' flag to be passed to the compiler to
get the unregisterised build.

ghc/driver/Makefile
ghc/driver/ghc.lprl
mk/config.mk.in

index e6b7fec..d8c3ccc 100644 (file)
@@ -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
index 9503339..745f968 100644 (file)
@@ -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:
index 901b2d1..1bae84b 100644 (file)
@@ -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