This PR makes build.sh automatically detect the architecture it's running on and build a toolchain for that architecture (if it's x86_64 or aarch64). This has been tested on aarch64 Fedora, aarch64 Ubuntu, and x86_64 Ubuntu. This is useful with my PR (osquery/osquery#6284) that adds support for building osquery on aarch64.
This PR makes build.sh automatically detect the architecture it's running on and build a toolchain for that architecture (if it's x86_64 or aarch64). This has been tested on aarch64 Fedora, aarch64 Ubuntu, and x86_64 Ubuntu. This is useful with my PR (osquery/osquery#6284) that adds support for building osquery on aarch64.