From 6687f82300f9e3c50fe5373b8d1f96c423a66d82 Mon Sep 17 00:00:00 2001 From: Andrei Dziahel Date: Sat, 12 Oct 2024 12:57:27 +0200 Subject: [PATCH 1/2] link executables dynamically to speed up linking --- cabal.project | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cabal.project b/cabal.project index bacb35e745..7dbbc0b04e 100644 --- a/cabal.project +++ b/cabal.project @@ -17,6 +17,10 @@ benchmarks: True write-ghc-environment-files: never +-- Link executables dynamically so the linker doesn't produce test +-- executables of ~150MB each and works lightning fast at that too +executable-dynamic: True + -- Many of our tests only work single-threaded, and the only way to -- ensure tasty runs everything purely single-threaded is to pass -- this at the top-level From 7b8e5ed7de82637a856730ea1456e235232a8f8d Mon Sep 17 00:00:00 2001 From: Andrei Dziahel Date: Sat, 12 Oct 2024 13:34:22 +0200 Subject: [PATCH 2/2] build: disable dynamic linking on Windows --- cabal.project | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cabal.project b/cabal.project index 7dbbc0b04e..d4c6995b1d 100644 --- a/cabal.project +++ b/cabal.project @@ -19,7 +19,9 @@ write-ghc-environment-files: never -- Link executables dynamically so the linker doesn't produce test -- executables of ~150MB each and works lightning fast at that too -executable-dynamic: True +-- Disabled on Windows +if(!os(windows)) + executable-dynamic: True -- Many of our tests only work single-threaded, and the only way to -- ensure tasty runs everything purely single-threaded is to pass