Commit 7ea0d8c7 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Don't use the threaded2 way when we don't support SMP

parent ee4ba37a
...@@ -35,7 +35,8 @@ if (ghc_with_interpreter == 1): ...@@ -35,7 +35,8 @@ if (ghc_with_interpreter == 1):
if (ghc_with_threaded_rts == 1): if (ghc_with_threaded_rts == 1):
config.run_ways.append('threaded1') config.run_ways.append('threaded1')
config.run_ways.append('threaded2') if (ghc_with_smp == 1):
config.run_ways.append('threaded2')
config.way_flags = { config.way_flags = {
'normal' : [], 'normal' : [],
......
...@@ -76,6 +76,12 @@ else ...@@ -76,6 +76,12 @@ else
RUNTEST_OPTS += -e ghc_with_threaded_rts=0 RUNTEST_OPTS += -e ghc_with_threaded_rts=0
endif endif
ifeq "$(GhcWithSMP)" "YES"
RUNTEST_OPTS += -e ghc_with_smp=1
else
RUNTEST_OPTS += -e ghc_with_smp=0
endif
ifneq "$(THREADS)" "" ifneq "$(THREADS)" ""
RUNTEST_OPTS += --thread=$(THREADS) RUNTEST_OPTS += --thread=$(THREADS)
endif endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment