handle more ocaml-config:system variants
Closed this issue · 3 comments
olafhering commented
With commit 1417533 only linux|unix
, cygwin
and darwin
are handled.
I get a zoo of variants, depending on the rpm target architecture:
aarch64 has system: linux
armv6l has system: linux_eabihf
armv7l has system: linux_eabihf
i586 has system: linux_elf
ppc64 has system: elf
ppc64le has system: elf
riscv64 has system: linux
s390x has system: elf
x86_64 has system: linux
thierry-martinez commented
Thank you very much for your detailed report. I would not have been able to list so many variants myself. It should be fixed now.
gdt commented
How is this supposed to work on operating systems not yet encountered, like NetBSD? It seems that whatever needs to know OS should instead be doing feature tests.
gdt commented
On NetBSD, system values are:
amd64, earmv7hf-el: netbsd
i386: bsd_elf
So this seems troubled in ocaml.