-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request: allow "available: word-size != 32" #4633
Comments
I like this feature request very much, it would help opam-repository tremendously. opam 2.1 is expected to have its rc1 released very very soon so if it is accepted it would most likely be in opam 2.2. |
This is a good one to put on the opam 2.2+ wishlist (definitely not opam 2.1, which is on the verge of release). |
Note: implementing an additional variable |
Maybe related is "big-endian" / "little-endian", so an opam package can specify which platforms it expects to work on with future compatibility (obviously, some packages would still need to {allow,deny} specific architectures). |
Some opam packages are only compiling on 64 bit systems (due to using large literals in OCaml code, ...). At the moment, it is cumbersome to figure out what to state in an opam file to define "this does not work on 32 bit systems", since
arch != "x86_32" & arch != "arm32"
may be sufficient today, but tomorrow when risc-v (or ppc32) is getting traction, it is no longer sufficient.In OCaml,
Sys.word_size
is very useful and available. It would be nice to have this functionality in opam as well -- it should be easy to implement, and straightforward to expose it in the opam file. This would be a welcome change in the soon future (maybe even in 2.1?).Thanks for reading.
The text was updated successfully, but these errors were encountered: