From b9fe4cd5ea843e95a333520e2e6036dd83852f5e Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Thu, 11 Feb 2021 11:31:08 -0500 Subject: 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. --- validate | 4 ++-- 1 file 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" -- cgit v1.2.1