Commit ca9b7043 authored by Simon Marlow's avatar Simon Marlow

Enable the optllvm way if llvmc is found

parent f454070b
...@@ -57,6 +57,9 @@ if (ghc_with_dynamic_rts == 1): ...@@ -57,6 +57,9 @@ if (ghc_with_dynamic_rts == 1):
if (ghc_with_profiling == 1 and ghc_with_threaded_rts == 1): if (ghc_with_profiling == 1 and ghc_with_threaded_rts == 1):
config.run_ways.append('profthreaded') config.run_ways.append('profthreaded')
if (ghc_with_llvm == 1):
config.run_ways.append('optllvm')
config.in_tree_compiler = in_tree_compiler config.in_tree_compiler = in_tree_compiler
config.way_flags = { config.way_flags = {
......
...@@ -86,6 +86,12 @@ else ...@@ -86,6 +86,12 @@ else
RUNTEST_OPTS += -e ghc_with_smp=0 RUNTEST_OPTS += -e ghc_with_smp=0
endif endif
ifneq "$(shell llvmc --version | grep version)" ""
RUNTEST_OPTS += -e ghc_with_llvm=1
else
RUNTEST_OPTS += -e ghc_with_llvm=0
endif
ifeq "$(WINDOWS)" "YES" ifeq "$(WINDOWS)" "YES"
RUNTEST_OPTS += -e windows=True RUNTEST_OPTS += -e windows=True
else else
......
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