Skip to content

Commit

Permalink
Merge pull request #10212 from jasagredo/js/fix-foreign
Browse files Browse the repository at this point in the history
Fix ForeignLibs test for Windows
  • Loading branch information
mergify[bot] authored Jul 21, 2024
2 parents 1def827 + be1ae31 commit 56f568c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions cabal-testsuite/PackageTests/ForeignLibs/MyForeignLib.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
EXPORTS
sayHi
myForeignLibExit
myForeignLibInit
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ foreign-library myforeignlib
type: native-shared

if os(windows)
options: standalone
options: standalone
mod-def-file: MyForeignLib.def

other-modules: MyForeignLib.Hello
MyForeignLib.SomeBindings
Expand Down
3 changes: 1 addition & 2 deletions cabal-testsuite/PackageTests/ForeignLibs/setup.test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ main = setupAndCabalTest . recordMode DoNotRecord $ do
-- Foreign libraries don't work with GHC 7.6 and earlier
skipUnlessGhcVersion ">= 7.8"
ghc94 <- isGhcVersion ">= 9.4.1"
expectBrokenIf (isWindows && ghc94) 8451 $
withPackageDb $ do
withPackageDb $ do
setup_install []
setup "copy" [] -- regression test #4156
dist_dir <- fmap testDistDir getTestEnv
Expand Down

0 comments on commit 56f568c

Please sign in to comment.