summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-02-11 11:31:08 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-02-14 03:36:57 -0500
commitb9fe4cd5ea843e95a333520e2e6036dd83852f5e (patch)
treea51718c07b059b0f85e14f22610e2bfc76debea0
parent4dc2002aeb08b8be399f1f535b86a671d18eac04 (diff)
downloadhaskell-b9fe4cd5ea843e95a333520e2e6036dd83852f5e.tar.gz
validate: Fix copy-pasta
Previously the Hadrian codepath of `validate` inverted the logic which decides whether the test build of `xhtml` should be built with `--enable-shared`. This resulted in validate failures on Windows, which does not support dynamic linkage of Haskell code.
-rwxr-xr-xvalidate4
1 files changed, 2 insertions, 2 deletions
diff --git a/validate b/validate
index 262f4270f5..af63fe0b19 100755
--- a/validate
+++ b/validate
@@ -270,9 +270,9 @@ if [ $testsuite_only -eq 0 ]; then
dynamicGhc=$("../../$ghc" --info | grep "GHC Dynamic" | cut -d',' -f3 | cut -d'"' -f2)
if [ "$dynamicGhc" = "NO" ]
then
- libFlags="--enable-shared --disable-library-vanilla"
- else
libFlags="--disable-shared --enable-library-vanilla"
+ else
+ libFlags="--enable-shared --disable-library-vanilla"
fi
libFlags="$libFlags --disable-library-prof"