summaryrefslogtreecommitdiff
path: root/mk/config.mk.in
diff options
context:
space:
mode:
Diffstat (limited to 'mk/config.mk.in')
-rw-r--r--mk/config.mk.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in
index 000b779b5d..7e8cc32430 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -218,6 +218,13 @@ GhcStage1HcOpts=
GhcStage2HcOpts=
GhcStage3HcOpts=
+ifneq "$(findstring thr, $(GhcRTSWays))" ""
+GhcThreaded=YES
+else
+GhcThreaded=NO
+endif
+GhcProfiled=NO
+
# Build a compiler that will build *unregisterised* libraries and
# binaries by default. Unregisterised code is supposed to compile and
# run without any support for architecture-specific assembly mangling,