Skip to content

Commit b956fa5

Browse files
committed
Don't build opam private runtime with MSVC
It's specific to mingw.
1 parent 52d81e4 commit b956fa5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src-opam/opam.ml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,11 @@ let install_opam_from_source_windows ?cyg ?prefix
6565
(if msvs then msvs_env else "")
6666
(if msvs then ocaml_port else "")
6767
@@ Windows.Cygwin.run_sh ?cyg
68-
"cd /tmp/opam-build-%s && %s./configure --enable-cold-check \
69-
--with-private-runtime%s%s && make && make install"
68+
"cd /tmp/opam-build-%s && %s./configure --enable-cold-check %s%s%s && \
69+
make && make install"
7070
branch
7171
(if msvs then msvs_env else "")
72+
(if msvs then "" else "--with-private-runtime")
7273
(Option.fold prefix ~none:"" ~some:(fun prefix ->
7374
Printf.sprintf {| --prefix="%s"|} prefix))
7475
(if enable_0install_solver then " --with-0install-solver" else "")

0 commit comments

Comments
 (0)