Commit 429c7623 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

configure: bootstrapping fix (#5155)

Don't check ghc compiles for the right platform when we're bootstrapping.
parent 32f24ddf
......@@ -305,12 +305,15 @@ checkOS "$TargetOS"
# Verify that the installed (bootstrap) GHC is capable of generating
# code for the requested build platform.
if test "$BuildPlatform" != "$bootstrap_target"
if test "$BootingFromHc" = "NO"
then
echo "This GHC (${WithGhc}) does not generate code for the build platform"
echo " GHC target platform : $bootstrap_target"
echo " Desired build platform : $BuildPlatform"
exit 1
if test "$BuildPlatform" != "$bootstrap_target"
then
echo "This GHC (${WithGhc}) does not generate code for the build platform"
echo " GHC target platform : $bootstrap_target"
echo " Desired build platform : $BuildPlatform"
exit 1
fi
fi
echo "GHC build : $BuildPlatform"
......
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