Requiring a different pyml_arch_<os>.ml for every OS makes supporting more OSes complex, as it requires doing copy&paste of a mostly similar template at least for Unix OSes.
Change the approach to something more taylored towards special cases: first check for specific OS implementations, and then add a generic unix OS implementation (former linux/freebsd impl) as fallback case.
This way:
specific OS implementations can still be added if different than the generic OS
generic Unix OSes (say all the BSDs) are supported automatically
there is less code duplication
The test suite should be enough to check whether an OS implementation is working or not.
Requiring a different
pyml_arch_<os>.ml
for every OS makes supporting more OSes complex, as it requires doing copy&paste of a mostly similar template at least for Unix OSes.Change the approach to something more taylored towards special cases: first check for specific OS implementations, and then add a generic unix OS implementation (former linux/freebsd impl) as fallback case. This way:
The test suite should be enough to check whether an OS implementation is working or not.