Closed Hywan closed 3 years ago
As discussed in https://github.com/wasmerio/wasmer/issues/2429#issuecomment-864925634, it would be ideal if this crate could get synchronized with cargo-c which has a very similar code but which supports more targets.
cargo-c
That's exactly what this patch does. It changes the code from a if+else workflow to a match version. It also adds support for android, freebsd, dragonfly, netbsd and ios.
if
else
match
android
freebsd
dragonfly
netbsd
ios
Thanks for the update (and the credit 🤗).
As discussed in https://github.com/wasmerio/wasmer/issues/2429#issuecomment-864925634, it would be ideal if this crate could get synchronized with
cargo-c
which has a very similar code but which supports more targets.That's exactly what this patch does. It changes the code from a
if
+else
workflow to amatch
version. It also adds support forandroid
,freebsd
,dragonfly
,netbsd
andios
.