@@ -53,27 +53,20 @@ let install_opam_from_source ?(add_default_link = true) ?(prefix = "/usr/local")
5353let install_opam_from_source_windows ?cyg ?prefix
5454 ?(enable_0install_solver = false ) ?(with_vendored_deps = false )
5555 ?(msvs = false ) ~branch ~hash () =
56- (* Although opam's readme states it can autodetec the environment
57- with MSVS, it doesn't always work. It's set explicitly here. *)
58- let msvs_env =
59- {| eval $ (msvs- detect -- arch= x64) && export PATH = " $MSVS_PATH:$PATH" && export LIB = " $MSVS_LIB" && export INCLUDE = " $MSVS_INC" && | }
60- and ocaml_port = " OCAML_PORT=msvc64 " in
6156 Windows.Cygwin. run_sh ?cyg
6257 " cd /tmp/opam-sources && cp -P -R -p . ../opam-build-%s && cd \
6358 ../opam-build-%s && git checkout %s && git config --global --add \
6459 safe.directory /tmp/opam-build-%s"
6560 branch branch hash branch
61+ @@ Windows.Cygwin. run_sh ?cyg " cd /tmp/opam-build-%s && make compiler %s"
62+ branch
63+ (if msvs then " OCAML_PORT=msvc64" else " " )
6664 @@ Windows.Cygwin. run_sh ?cyg
67- " cd /tmp/opam-build-%s && %smake compiler %s&& make lib-pkg" branch
68- (if msvs then msvs_env else " " )
69- (if msvs then ocaml_port else " " )
70- @@ Windows.Cygwin. run_sh ?cyg
71- " cd /tmp/opam-build-%s && %s./configure --enable-cold-check %s%s%s%s && \
65+ " cd /tmp/opam-build-%s && ./configure --enable-cold-check %s%s%s%s && \
7266 make && make install"
7367 branch
74- (if msvs then msvs_env else " " )
7568 (if msvs then " " else " --with-private-runtime" )
76- (if with_vendored_deps then " " else " --with-vendored_deps" )
69+ (if with_vendored_deps then " --with-vendored_deps" else " " )
7770 (Option. fold prefix ~none: " " ~some: (fun prefix ->
7871 Printf. sprintf {| -- prefix= " %s" | } prefix))
7972 (if enable_0install_solver then " --with-0install-solver" else " " )
0 commit comments