Skip to content

Commit 502d91d

Browse files
committed
WIP: Getting MDX tests working on Windows
1 parent e5a0e54 commit 502d91d

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,7 @@ Eio.Io Net Connection_failure Refused Unix_error (Connection refused, "connect",
754754
If we ran this using another backend, the `Unix_error` part might change.
755755
To avoid this problem, you can use `Eio.Exn.Backend.show` to hide the backend-specific part of errors:
756756

757+
<!-- $MDX skip -->
757758
```ocaml
758759
# Eio.Exn.Backend.show := false;;
759760
- : unit = ()

dune

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
(package eio_main)
33
(deps (package eio_main) (env_var "EIO_BACKEND"))
44
(preludes doc/prelude.ml)
5-
(enabled_if (<> %{os_type} "Win32"))
65
(files README.md))

eio_windows.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ build: [
3030
]
3131
]
3232
dev-repo: "git+https://github.com/ocaml-multicore/eio.git"
33-
#available: [os-family = "windows"]
33+
#available: [os = "win32"]

lib_eio_windows/dune

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
(library
22
(name eio_windows)
33
(public_name eio_windows)
4-
(library_flags :standard -ccopt -lbcrypt -ccopt -lntdll)
4+
(library_flags :standard -cclib -lbcrypt -cclib -lntdll)
55
(enabled_if (= %{os_type} "Win32"))
66
(foreign_stubs
77
(language c)
88
(include_dirs ../lib_eio/unix/include)
99
(names eio_windows_stubs eio_windows_cstruct_stubs))
10+
(c_library_flags :standard -lbcrypt -lntdll)
1011
(libraries eio eio.unix eio.utils fmt))
1112

1213
(rule

0 commit comments

Comments
 (0)