File tree Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ write-ghc-environment-files: always
16
16
-- index state, to go along with the cabal.project.freeze file. update the index
17
17
-- state by running `cabal update` twice and looking at the index state it
18
18
-- displays to you (as the second update will be a no-op)
19
- index-state : 2023-09-12T05:36 :44Z
19
+ index-state : 2023-10-18T12:11 :41Z
20
20
21
21
-- For some reason the `clash-testsuite` executable fails to run without
22
22
-- this, as it cannot find the related library...
@@ -81,4 +81,3 @@ package recursion-schemes
81
81
82
82
package regex-tdfa
83
83
optimization : 2
84
-
Original file line number Diff line number Diff line change @@ -385,12 +385,15 @@ test-suite doctests
385
385
build-depends :
386
386
base,
387
387
clash-prelude,
388
- doctest-parallel >= 0.2 && < 0.4 ,
388
+ doctest-parallel >= 0.3.1 && < 0.4 ,
389
389
filepath
390
390
391
391
if flag(workaround-ghc-mmap-crash)
392
392
ghc-options : -with-rtsopts=-xm20000000
393
393
394
+ if flag(multiple-hidden)
395
+ CPP-Options : -DCLASH_MULTIPLE_HIDDEN
396
+
394
397
395
398
test-suite unittests
396
399
import : common-options
Original file line number Diff line number Diff line change
1
+ {-# LANGUAGE CPP #-}
1
2
module Main where
2
3
3
- import System.Environment (getArgs )
4
4
import Test.DocTest (mainFromCabal )
5
+ import System.Environment (getArgs )
5
6
6
7
main :: IO ()
7
- main = mainFromCabal " clash-prelude" =<< getArgs
8
+ main = mainFromCabal " clash-prelude" =<< fmap (extraArgs ++ ) getArgs
9
+
10
+ extraArgs :: [String ]
11
+ extraArgs = map (" --ghc-arg=" ++ )
12
+ [
13
+ #if __GLASGOW_HASKELL__ >= 904
14
+ " -DCLASH_OPAQUE=OPAQUE"
15
+ #else
16
+ " -DCLASH_OPAQUE=NOINLINE"
17
+ #endif
18
+ #ifdef CLASH_MULTIPLE_HIDDEN
19
+ , " -DCLASH_MULTIPLE_HIDDEN"
20
+ #endif
21
+ ]
You can’t perform that action at this time.
0 commit comments