diff --git a/util/build.c b/util/build.c index a2bea47..72fbcfb 100644 --- a/util/build.c +++ b/util/build.c @@ -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;