Skip to content

Commit fd0816f

Browse files
committed
survey: Fix -A working -A workingStackageExecutables with -O0.
1 parent 4fa7bba commit fd0816f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

survey/default.nix

+21
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,11 @@ let
10001000
(if disableOptimization then dontCheck else lib.id)
10011001
super.aeson-diff;
10021002

1003+
# Tests use `inspection-testing` which cannot work on `-O0`.
1004+
ap-normalize =
1005+
(if disableOptimization then dontCheck else lib.id)
1006+
super.ap-normalize;
1007+
10031008
# `criterion`'s test suite fails with a timeout if its dependent
10041009
# libraries (apparently `bytestring`) are compiled with `-O0`.
10051010
# Even increasing the timeout 5x did not help!
@@ -1042,6 +1047,11 @@ let
10421047
(if disableOptimization then dontCheck else lib.id)
10431048
super.weigh;
10441049

1050+
# Tests use `inspection-testing` which cannot work on `-O0`.
1051+
generic-data =
1052+
(if disableOptimization then dontCheck else lib.id)
1053+
super.generic-data;
1054+
10451055
# `HsOpenSSL` has a bug where assertions are only triggered on `-O0`.
10461056
# This breaks its test suite.
10471057
# https://github.com/vshabanov/HsOpenSSL/issues/44
@@ -1170,6 +1180,11 @@ let
11701180
# Currently fails with linker error, see `yesod-paginator` below.
11711181
erd = doJailbreak super.erd;
11721182

1183+
# Test timeout is too tight on `-O0`.
1184+
Glob =
1185+
(if disableOptimization then dontCheck else lib.id)
1186+
super.Glob;
1187+
11731188
# Tests fail with: doctests: <command line>: Dynamic loading not supported
11741189
headroom = dontCheck super.headroom;
11751190

@@ -1445,6 +1460,12 @@ let
14451460
# Test suite tries to run `minisat` which is not on PATH
14461461
ersatz = dontCheck super.ersatz;
14471462

1463+
# Seems to time out on `-O0` (but does not print that timeout
1464+
# is the failure reason).
1465+
numeric-prelude =
1466+
(if disableOptimization then dontCheck else lib.id)
1467+
super.numeric-prelude;
1468+
14481469
# doctests test suite fails with:
14491470
# /build/trifecta-2.1/src/Text/Trifecta/Util/It.hs:61: failure in expression `let keepIt a = Pure a'
14501471
# expected:

0 commit comments

Comments
 (0)