this repo has no description
0
fork

Configure Feed

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

Windows support for ocaml-secondary-compiler.4.14.2

+47 -9
+47 -9
packages/ocaml-secondary-compiler/ocaml-secondary-compiler.4.14.2/opam
··· 5 5 license: "LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception" 6 6 homepage: "https://ocaml.org" 7 7 bug-reports: "https://github.com/ocaml/opam-repository/issues" 8 - dev-repo: "git+https://github.com/ocaml/ocaml" 8 + dev-repo: "git+https://github.com/ocaml/ocaml#4.14" 9 + depends: [ 10 + # Architecture (non-Windows) 11 + # opam-repository at present requires that ocaml-base-compiler is installed 12 + # using an architecture which matches the machine's, since arch is used in 13 + # available fields. Cross-compilation at this stage is an unstable accident. 14 + "host-arch-arm32" {arch = "arm32" & post} 15 + "host-arch-arm64" {arch = "arm64" & post} 16 + "host-arch-ppc64" {arch = "ppc64" & post} 17 + "host-arch-riscv64" {arch = "riscv64" & post} 18 + "host-arch-s390x" {arch = "s390x" & post} 19 + # The Windows ports explicitly select the architecture (see below) this 20 + # facility is not yet available for other platforms. 21 + "host-arch-x86_32" {os != "win32" & arch = "x86_32" & post} 22 + "host-arch-x86_64" {os != "win32" & arch = "x86_64" & post} 23 + "host-arch-unknown" {os != "win32" & arch != "arm32" & arch != "arm64" & arch != "ppc64" & arch != "riscv64" & arch != "s390x" & arch != "x86_32" & arch != "x86_64" & post} 24 + 25 + # Port selection (Windows) 26 + # amd64 mingw-w64 / MSVC 27 + (("arch-x86_64" {os = "win32" & arch = "x86_64"} & 28 + (("system-mingw" & "mingw-w64-shims" {os-distribution = "cygwin" & post}) | 29 + "system-msvc")) | 30 + # i686 mingw-w64 / MSVC 31 + ("arch-x86_32" {os = "win32"} & 32 + (("system-mingw" & "mingw-w64-shims" {os-distribution = "cygwin" & post}) | 33 + "system-msvc")) | 34 + # Non-Windows systems 35 + "host-system-other" {os != "win32" & post}) 36 + 37 + # Support Packages 38 + "flexdll" {>= "0.36" & os = "win32"} 39 + ] 40 + build-env: MSYS2_ARG_CONV_EXCL = "*" 9 41 build: [ 10 42 [ 11 43 "./configure" 12 - "--prefix=%{_:share}%" 13 - "--libdir=%{_:share}%/lib" 14 - "--disable-debugger" 15 - "--disable-installing-bytecode-programs" 16 - "--disable-debug-runtime" 17 - "--disable-instrumented-runtime" 18 - "CC=cc" {os = "openbsd" | os = "freebsd" | os = "macos"} 19 - "ASPP=cc -c" {os = "openbsd" | os = "freebsd" | os = "macos"} 44 + "--host=x86_64-pc-windows" {system-msvc:installed & arch-x86_64:installed} 45 + "--host=x86_64-w64-mingw32" {os-distribution = "cygwin" & system-mingw:installed & arch-x86_64:installed} 46 + "--host=i686-pc-windows" {system-msvc:installed & arch-x86_32:installed} 47 + "--host=i686-w64-mingw32" {os-distribution = "cygwin" & system-mingw:installed & arch-x86_32:installed} 48 + "--prefix=%{_:share}%" 49 + "--libdir=%{_:share}%/lib" 50 + "--disable-stdlib-manpages" 51 + "--with-flexdll=%{flexdll:share}%" {os = "win32" & flexdll:installed} 52 + "--disable-debugger" 53 + "--disable-installing-bytecode-programs" 54 + "--disable-debug-runtime" 55 + "--disable-instrumented-runtime" 56 + "CC=cc" {os = "openbsd" | os = "freebsd" | os = "macos"} 57 + "ASPP=cc -c" {os = "openbsd" | os = "freebsd" | os = "macos"} 20 58 ] 21 59 [make "-j%{jobs}%"] 22 60 ]