Commit cd39a1cf authored by simonmar's avatar simonmar
Browse files

[project @ 2000-11-02 14:33:15 by simonmar]

Found a better way to do the arch test for $(GhcWithInterpreter), used
it for $(GhcWithNativeCodeGen) too and removed one $(shell...).
parent 803963ad
......@@ -169,26 +169,18 @@ GhcWithHscBuiltViaC=@BootingFromHc@
#
# Target platforms supported:
# i386, alpha & sparc
GhcWithNativeCodeGen=$(shell if (test x$(findstring $(HostArch_CPP),i386 alpha sparc) = x); then echo NO; else echo YES; fi)
ifneq "$(findstring $(HostArch_CPP), i386 alpha sparc)" ""
GhcWithNativeCodeGen=YES
else
GhcWithNativeCodeGen=NO
endif
# Include GHCi in the compiler
ifeq "$(linux_TARGET_OS)" "1"
ifneq "$(findstring $(HostOS_CPP), linux solaris freebsd netbsd openbsd)" ""
GhcWithInterpreter=YES
else
ifeq "$(solaris_TARGET_OS)" "1"
GhcWithInterpreter=YES
else
ifeq "$(freebsd_TARGET_OS)" "1"
GhcWithInterpreter=YES
else
ifeq "$(netbsd_TARGET_OS)" "1"
GhcWithInterpreter=YES
else
GhcWithInterpreter=NO
endif
endif
endif
endif
#
# Building various ways?
......
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