don't add -threaded in stage2/3 if we didn't build the threaded RTS
authorSimon Marlow <simonmar@microsoft.com>
Tue, 12 Jun 2007 08:17:03 +0000 (08:17 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Tue, 12 Jun 2007 08:17:03 +0000 (08:17 +0000)
compiler/Makefile.ghcbin

index 25a8a58..0e3ce12 100644 (file)
@@ -37,9 +37,11 @@ endif
 
 endif
 
+ifneq "$(findstring thr, $(GhcRTSWays))" ""
 ifneq "$(GhcNotThreaded)" "YES"
 SRC_HC_OPTS += -threaded
 endif
+endif
 
 odir=stage$(stage)