Skip to content

Commit 35187a3

Browse files
committed
Revert "threaded by default"
This reverts commit fd8fa1f.
1 parent e0642ad commit 35187a3

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ SHELL := bash
55
MAKEFLAGS += --warn-undefined-variables --no-builtin-rules
66

77
# Default target
8-
all: stage2 rts-debug rts-no-threaded rts-debug-no-threaded
8+
all: stage2 rts-debug rts-threaded rts-debug-threaded
99

1010
CABAL ?= cabal
1111
GHC0 ?= ghc
@@ -114,22 +114,22 @@ rts-debug: _stage2/bin/ghc
114114
# cabal still writes the environment files even if we pass --write-ghc-environment-files=never
115115
log rm -f ~/.ghc/*/*/default
116116

117-
rts-no-threaded: OUT = $(abspath _stage2)
118-
rts-no-threaded: GHC = $(abspath _stage1/bin/ghc)
119-
rts-no-threaded: _stage2/bin/ghc
117+
rts-threaded: OUT = $(abspath _stage2)
118+
rts-threaded: GHC = $(abspath _stage2/bin/ghc)
119+
rts-threaded: _stage2/bin/ghc
120120
@$(LIB)
121121
log rm -f ~/.ghc/*/*/default
122-
log $(CABAL_INSTALL) --write-ghc-environment-files=never --package-db=$(abspath _stage1/lib/package.conf.d) --build-package-db=$(abspath _stage0/lib/package.conf.d) --project-file cabal.project.stage2 --lib rts:rts --constraint='rts -threaded'
122+
log $(CABAL_INSTALL) --write-ghc-environment-files=never --package-db=$(abspath _stage1/lib/package.conf.d) --build-package-db=$(abspath _stage0/lib/package.conf.d) --project-file cabal.project.stage2 --lib rts:rts --constraint="rts+threaded"
123123
# cabal still writes the environment files even if we pass --write-ghc-environment-files=never
124124
log rm -f ~/.ghc/*/*/default
125125

126126

127-
rts-debug-no-threaded: OUT = $(abspath _stage2)
128-
rts-debug-no-threaded: GHC = $(abspath _stage1/bin/ghc)
129-
rts-debug-no-threaded: _stage2/bin/ghc
127+
rts-debug-threaded: OUT = $(abspath _stage2)
128+
rts-debug-threaded: GHC = $(abspath _stage2/bin/ghc)
129+
rts-debug-threaded: _stage2/bin/ghc
130130
@$(LIB)
131131
log rm -f ~/.ghc/*/*/default
132-
log $(CABAL_INSTALL) --write-ghc-environment-files=never --package-db=$(abspath _stage1/lib/package.conf.d) --build-package-db=$(abspath _stage0/lib/package.conf.d) --project-file cabal.project.stage2 --lib rts:rts --constraint='rts +debug -threaded'
132+
log $(CABAL_INSTALL) --write-ghc-environment-files=never --package-db=$(abspath _stage1/lib/package.conf.d) --build-package-db=$(abspath _stage0/lib/package.conf.d) --project-file cabal.project.stage2 --lib rts:rts --constraint="rts+debug" --constraint="rts+threaded"
133133
# cabal still writes the environment files even if we pass --write-ghc-environment-files=never
134134
log rm -f ~/.ghc/*/*/default
135135

cabal.project.stage2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ package ghc-internal
106106
flags: +bignum-native
107107

108108
package ghc-bin
109-
flags: +internal-interpreter
109+
-- FIXME: we don't have the threaded RTS yet.
110+
flags: -threaded +internal-interpreter
110111

111112
package text
112113
-- FIXME: avoid having to deal with system-cxx-std-lib fake package for now

compiler/GHC/Driver/DynFlags.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,8 +636,7 @@ defaultDynFlags mySettings =
636636
ignorePackageFlags = [],
637637
trustFlags = [],
638638
packageEnv = Nothing,
639-
-- we default to threaded!
640-
targetWays_ = Set.singleton WayThreaded,
639+
targetWays_ = Set.empty,
641640
splitInfo = Nothing,
642641

643642
ghcNameVersion = sGhcNameVersion mySettings,

rts/rts.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ flag dynamic
315315
default: False
316316
manual: True
317317
flag threaded
318-
default: True
318+
default: False
319319
manual: True
320320
flag thread-sanitizer
321321
description:

0 commit comments

Comments
 (0)