mirror of https://gitlab.com/nakst/essence
only use precompiled toolchain on linux x64
This commit is contained in:
parent
77586e6561
commit
d6d5c8ca44
|
@ -1950,14 +1950,14 @@ int main(int _argc, char **_argv) {
|
||||||
const char *runFirstCommand = NULL;
|
const char *runFirstCommand = NULL;
|
||||||
|
|
||||||
if (CallSystem("" TOOLCHAIN_PREFIX "-gcc --version > /dev/null 2>&1 ")) {
|
if (CallSystem("" TOOLCHAIN_PREFIX "-gcc --version > /dev/null 2>&1 ")) {
|
||||||
#if 0
|
#if defined(__linux__) && defined(__x86_64__)
|
||||||
BuildCrossCompiler();
|
|
||||||
#else
|
|
||||||
fprintf(stderr, "Downloading the compiler toolchain...\n");
|
fprintf(stderr, "Downloading the compiler toolchain...\n");
|
||||||
DoCommand("get-source-checked 700205f81c7a5ca3279ae7b1fdb24e025d33b36a9716b81a71125bf0fec0de50 "
|
DoCommand("get-source-checked 700205f81c7a5ca3279ae7b1fdb24e025d33b36a9716b81a71125bf0fec0de50 "
|
||||||
"prefix https://github.com/nakst/build-gcc/releases/download/gcc-11.1.0/gcc-x86_64-essence.tar.xz");
|
"prefix https://github.com/nakst/build-gcc/releases/download/gcc-11.1.0/gcc-x86_64-essence.tar.xz");
|
||||||
DoCommand("setup-pre-built-toolchain");
|
DoCommand("setup-pre-built-toolchain");
|
||||||
AddCompilerToPath();
|
AddCompilerToPath();
|
||||||
|
#else
|
||||||
|
BuildCrossCompiler();
|
||||||
#endif
|
#endif
|
||||||
runFirstCommand = "b";
|
runFirstCommand = "b";
|
||||||
foundValidCrossCompiler = true;
|
foundValidCrossCompiler = true;
|
||||||
|
|
Loading…
Reference in New Issue