We're using as (GNU Assembler on Linux and LLVM Assembler on macOS) to assemble the compiled x86-64 Assembly code and clang to link the produced object and runtime code. However, this setup is currently not reliably able to perform cross compilation since toolchains other than the host's may not be available.
A possible solution may involve using a Nix flake to properly define all dependencies and required toolchains, or even to fully ditch those tools and implement a handmade assembler and linker.
We're using
as(GNU Assembler on Linux and LLVM Assembler on macOS) to assemble the compiled x86-64 Assembly code andclangto link the produced object and runtime code. However, this setup is currently not reliably able to perform cross compilation since toolchains other than the host's may not be available.A possible solution may involve using a Nix flake to properly define all dependencies and required toolchains, or even to fully ditch those tools and implement a handmade assembler and linker.