Use an Arch
enum and feature flags instead of cfg(target_arch)
#102
Labels
enhancement
New feature or request
Arch
enum and feature flags instead of cfg(target_arch)
#102
Instead of using
#[cfg(target_arch = "x86_64")]
for architecture-specific implementations, introduce corresponding feature flags - e.g.:#[cfg(feature = "x86_64")]
.In addition to that, introduce an enum to be used for type arguments:
This is required for the possibility of future multi-arch builds of Headcrab - for example, in case if we'd want to work with a core dump generated on an ARM-based machine (or connect to that machine remotely using the gdb-serial target).
The text was updated successfully, but these errors were encountered: