From 7691151391cdd560b6db5680c0136f1262730022 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 1593811493..43a48830fe 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 ae5f23d01060dae204746b6e9b36fcf2231a8d76 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 43a48830fe..7e488eae8c 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