only use precompiled toolchain on linux x64

This commit is contained in:
nakst 2022-01-21 16:08:39 +00:00
parent 77586e6561
commit d6d5c8ca44
1 changed files with 3 additions and 3 deletions

View File

@ -1950,14 +1950,14 @@ int main(int _argc, char **_argv) {
const char *runFirstCommand = NULL;
if (CallSystem("" TOOLCHAIN_PREFIX "-gcc --version > /dev/null 2>&1 ")) {
#if 0
BuildCrossCompiler();
#else
#if defined(__linux__) && defined(__x86_64__)
fprintf(stderr, "Downloading the compiler toolchain...\n");
DoCommand("get-source-checked 700205f81c7a5ca3279ae7b1fdb24e025d33b36a9716b81a71125bf0fec0de50 "
"prefix https://github.com/nakst/build-gcc/releases/download/gcc-11.1.0/gcc-x86_64-essence.tar.xz");
DoCommand("setup-pre-built-toolchain");
AddCompilerToPath();
#else
BuildCrossCompiler();
#endif
runFirstCommand = "b";
foundValidCrossCompiler = true;