Description
I am working on my operating system on an Apple Silicon M1 MacBook (aarch64) from time to time and when I try to build the boot image, it always fails with the message This crate only supports the x86_64 architecture.
because it uses the current architecture, of course. I ended up cloning the repo and adding the TARGET
environment variable to the builder process to make it cross-compile for x86_64, which works for me but I'm not sure if that's the best way to do this.
Maybe the crate could get a config option for cross-compiling or something? Or always force a specific target? I'm not sure what issues might arise from this, so I thought I'd submit this issue first to discuss stuff.
If we can agree on a good solution, I'd be happy to submit a PR for that! :)
Thanks for your work!