You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been considering if we could get rid of the build script for determining the host architecture, using target_* cfgs instead of parsing the TARGET. Something like the following:
This would likely allow target-lexiconto be used in cc, which in turn would allow us to centralize target parsing even more, to the benefit of all in the ecosystem.
One complication though is that Rust's target_* cfgs aren't as descriptive, for example target_arch = "arm" is often used for several ARM architectures.
I think this may turn out to not really matter though, since there are fewer targets with host tool support? But then again, this would not allow us to distinguish between armv6-unknown-freebsd and armv7-unknown-freebsd, which, although tier 3, seemingly have host tool support.
There are several ways to solve this, including splitting the build script out into a separate crate that is only loaded when really needed, something like [target.armv7-unknown-freebsd.dependencies] target-lexion-with-build-script = "...".
The text was updated successfully, but these errors were encountered:
I've been considering if we could get rid of the build script for determining the host architecture, using
target_*
cfgs instead of parsing theTARGET
. Something like the following:This would likely allow
target-lexicon
to be used incc
, which in turn would allow us to centralize target parsing even more, to the benefit of all in the ecosystem.One complication though is that Rust's
target_*
cfgs aren't as descriptive, for exampletarget_arch = "arm"
is often used for several ARM architectures.I think this may turn out to not really matter though, since there are fewer targets with host tool support? But then again, this would not allow us to distinguish between
armv6-unknown-freebsd
andarmv7-unknown-freebsd
, which, although tier 3, seemingly have host tool support.There are several ways to solve this, including splitting the build script out into a separate crate that is only loaded when really needed, something like
[target.armv7-unknown-freebsd.dependencies] target-lexion-with-build-script = "..."
.The text was updated successfully, but these errors were encountered: