Skip to content

Commit 5dba3d2

Browse files
Finalize handling of GHC issue in clash-ffi
1 parent 2330bb4 commit 5dba3d2

File tree

4 files changed

+12
-18
lines changed

4 files changed

+12
-18
lines changed

.ci/build.sh

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,15 @@ clash-prelude:doctests
3434
clash-prelude:unittests
3535
clash-testsuite:clash-testsuite
3636
"
37-
mkdir bin
38-
for TEST in $TESTS; do
39-
ln -s "$(realpath --relative-to=bin "$(cabal list-bin $TEST)")" bin/$TEST
40-
done
4137

42-
# TODO: remove this and put it back into tests when
43-
# https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12264#note_602406
44-
# is fixed
38+
# GHC 9.8.3, 9.8.4 and 9.10.2 have issues, see https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12264#note_602406
4539
set +u
4640
if [[ "$SKIP_CLASH_FFI_EXAMPLE" != "yes" ]]; then
47-
ln -s "$(realpath --relative-to=bin "$(cabal list-bin clash-ffi:ffi-interface-tests)")" bin/clash-ffi:ffi-interface-tests
41+
TESTS="$TESTS clash-ffi:ffi-interface-tests"
4842
fi
4943
set -u
44+
45+
mkdir bin
46+
for TEST in $TESTS; do
47+
ln -s "$(realpath --relative-to=bin "$(cabal list-bin $TEST)")" bin/$TEST
48+
done

.ci/gitlab/test.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ lib:unittests:
117117

118118
ffi:interface-tests:
119119
extends: .test-nocache
120-
# TODO: remove this when https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12264#note_602406
121-
# is fixed
120+
# GHC 9.8.3, 9.8.4 and 9.10.2 have issues, see https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12264#note_602406
122121
rules:
123122
- if: $SKIP_CLASH_FFI_EXAMPLE != "yes"
124123
script:
@@ -154,8 +153,7 @@ ffi:example:
154153
extends:
155154
- .common-local
156155
- .nightly-rules
157-
# TODO: remove this when https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12264#note_602406
158-
# is fixed
156+
# GHC 9.8.3, 9.8.4 and 9.10.2 have issues, see https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12264#note_602406
159157
rules:
160158
- if: $SKIP_CLASH_FFI_EXAMPLE != "yes"
161159
stage: test

.gitlab-ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ tests:
3838
RUN_TESTS: "always"
3939

4040
- GHC_VERSION: 9.8.4
41-
# TODO: remove this when https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12264#note_602406
42-
# is fixed
41+
# GHC 9.8.3, 9.8.4 and 9.10.2 have issues, see https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12264#note_602406
4342
SKIP_CLASH_FFI_EXAMPLE: "yes"
4443
RUN_TESTS: "always"
4544

clash-ffi/clash-ffi.cabal

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ library
7676
Clash.FFI.VPI.Port
7777
Clash.FFI.VPI.Port.Direction
7878
Clash.FFI.VPI.Reg
79-
-- TODO: remove this once https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12264#note_602406
80-
-- is fixed
79+
-- GHC 9.8.3, 9.8.4 and 9.10.2 have issues, see https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12264#note_602406
8180
if impl(ghc < 9.8.3) || impl(ghc == 9.10.1) || impl(ghc > 9.10.2)
8281
buildable: True
8382
else
@@ -114,8 +113,7 @@ test-suite ffi-interface-tests
114113
, tasty
115114
, tasty-hunit
116115
, tasty-smallcheck
117-
-- TODO: remove this once https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12264#note_602406
118-
-- is fixed
116+
-- GHC 9.8.3, 9.8.4 and 9.10.2 have issues, see https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12264#note_602406
119117
if impl(ghc < 9.8.3) || impl(ghc == 9.10.1) || impl(ghc > 9.10.2)
120118
buildable: True
121119
else

0 commit comments

Comments
 (0)