Skip to content

Commit

Permalink
Use --io-manager=native in lib-suite on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jasagredo committed Jun 14, 2024
1 parent 236b513 commit 416255f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cabal-testsuite/cabal-testsuite.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ executable cabal-tests
main-is: cabal-tests.hs
hs-source-dirs: main
ghc-options: -threaded
if os(windows)
ghc-options: -rtsopts
-- Make sure these are built before the executable is run
build-tool-depends: cabal-testsuite:test-runtime-deps
build-depends:
Expand Down
2 changes: 1 addition & 1 deletion validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ fi
step_lib_suite() {
print_header "Cabal: cabal-testsuite"

CMD="$($CABALLISTBIN cabal-testsuite:exe:cabal-tests) --builddir=$CABAL_TESTSUITE_BDIR $TESTSUITEJOBS --with-ghc=$HC --hide-successes"
CMD="$($CABALLISTBIN cabal-testsuite:exe:cabal-tests) --builddir=$CABAL_TESTSUITE_BDIR $TESTSUITEJOBS --with-ghc=$HC --hide-successes $([[ $ARCH = "x86_64-windows" ]] && echo "+RTS --io-manager=native" || echo "")"
(cd cabal-testsuite && timed $CMD) || exit 1
}

Expand Down

0 comments on commit 416255f

Please sign in to comment.