The unpac monorepo manager self-hosting as a monorepo using unpac
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix build on Windows with `sys-msvc` (close #253)

+14 -9
+3 -1
vendor/opam/cmdliner/CHANGES.md
··· 1 1 2 2 3 + - Fix build on Windows with `sys-msvc`. 4 + Thanks to Antonin Décimo and Nicolás Ojeda Bär (#253). 3 5 4 6 - Add `.NOTPARALLEL` to makefile. 5 - Thanks to Antonin Decimo for the report and patch (#252). 7 + Thanks to Antonin Décimo for the report and patch (#252). 6 8 7 9 v2.1.0 2025-11-25 Zagreb 8 10 ------------------------
+3 -2
vendor/opam/cmdliner/Makefile
··· 24 24 NATIVE=$(shell ocamlopt -version > /dev/null 2>&1 && echo true) 25 25 # EXT_LIB by default value of OCaml's Makefile.config 26 26 # NATDYNLINK by default value of OCaml's Makefile.config 27 + # EXE by default value of OCaml's Makefile.config 27 28 28 29 INSTALL=install 29 30 B=_build ··· 66 67 ocaml build.ml cmxs 67 68 68 69 build-byte-exe: build-byte 69 - ocaml build.ml bytexe 70 + ocaml build.ml bytexe "$(EXE)" 70 71 71 72 build-native-exe: build-native 72 - ocaml build.ml natexe 73 + ocaml build.ml natexe "$(EXE)" 73 74 74 75 build-completions: $(BUILD-EXE) 75 76 $(TOOL) generic-completion bash > $(TOOLBDIR)/bash-completion.sh
+8 -6
vendor/opam/cmdliner/build.ml
··· 142 142 let lib = build_dir Lib in 143 143 ["-I"; lib; ar] @ common src 144 144 145 - let build_natexe srcs = 146 - run_cmd ([ocamlopt ()] @ exe "cmdliner.cmxa" srcs @ ["-o"; "cmdliner"]) 145 + let build_natexe ~exe_ext srcs = 146 + let tool = "cmdliner" ^ exe_ext in 147 + run_cmd ([ocamlopt ()] @ exe "cmdliner.cmxa" srcs @ ["-o"; tool]) 147 148 148 - let build_bytexe srcs = 149 - run_cmd ([ocamlc ()] @ exe "cmdliner.cma" srcs @ ["-o"; "cmdliner"]) 149 + let build_bytexe ~exe_ext srcs = 150 + let tool = "cmdliner" ^ exe_ext in 151 + run_cmd ([ocamlc ()] @ exe "cmdliner.cma" srcs @ ["-o"; tool]) 150 152 151 153 let build_cma srcs = 152 154 run_cmd ([ocamlc ()] @ common srcs @ ["-a"; "-o"; "cmdliner.cma"]) ··· 169 171 Sys.chdir build_dir; f srcs; Sys.chdir root_dir 170 172 171 173 let main () = match Array.to_list Sys.argv with 172 - | _ :: [ "natexe" ] -> in_build_dir Bin build_natexe 173 - | _ :: [ "bytexe" ] -> in_build_dir Bin build_bytexe 174 + | _ :: [ "natexe"; exe_ext ] -> in_build_dir Bin (build_natexe ~exe_ext) 175 + | _ :: [ "bytexe"; exe_ext ] -> in_build_dir Bin (build_bytexe ~exe_ext) 174 176 | _ :: [ "cma" ] -> in_build_dir Lib build_cma 175 177 | _ :: [ "cmxa" ] -> in_build_dir Lib build_cmxa 176 178 | _ :: [ "cmxs" ] -> in_build_dir Lib build_cmxs