ocaml / opam

opam is a source-based package manager. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.
https://opam.ocaml.org
Other
1.21k stars 348 forks source link

Fix the value of the 'arch' variable when the current OS is 32bit on a 64bit machine #5950

Open kit-ty-kate opened 2 months ago

kit-ty-kate commented 2 months ago

Fixes #5949

getconf LONG_BIT is POSIX-complient and thus should work on any Unix-like systems (including cygwin)

Tested successfully on Linux, macOS, Cygwin and MSYS2

dra27 commented 2 months ago

Thanks for this!! That means that switches on Raspberry Pi OS now install host-arch-arm32 instead of host-arch-arm64 with https://github.com/ocaml/opam-repository/pull/25861.

This seems a sensible change to me?