From 67738db10010fd28a8e997b5c8f83ea591b88a0e Mon Sep 17 00:00:00 2001 From: Travis Whitaker Date: Wed, 6 May 2020 04:14:47 +0000 Subject: Build a threaded stage 1 if the bootstrapping GHC supports it. --- compiler/ghc.mk | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'compiler/ghc.mk') diff --git a/compiler/ghc.mk b/compiler/ghc.mk index 6a2dadc820..6e86b73e8d 100644 --- a/compiler/ghc.mk +++ b/compiler/ghc.mk @@ -194,6 +194,12 @@ ifeq "$(GhcThreaded)" "YES" compiler_stage2_CONFIGURE_OPTS += --ghc-option=-optc-DTHREADED_RTS endif +# If the bootstrapping GHC supplies the threaded RTS, then we can have a +# threaded stage 1 too. +ifeq "$(GhcThreadedRts)" "YES" +compiler_stage1_CONFIGURE_OPTS += --ghc-option=-optc-DTHREADED_RTS +endif + ifeq "$(GhcWithNativeCodeGen)" "YES" compiler_stage1_CONFIGURE_OPTS += --flags=ncg compiler_stage2_CONFIGURE_OPTS += --flags=ncg -- cgit v1.2.1