mirror of https://gitlab.com/nakst/essence
don't build new compiler toolchain by default
This commit is contained in:
parent
e56fd94531
commit
973d4a5da7
|
@ -14,7 +14,7 @@ Start the build system.
|
||||||
|
|
||||||
./start.sh
|
./start.sh
|
||||||
|
|
||||||
Follow the on-screen instructions to build a cross compiler.
|
The compiler toolchain will be downloaded.
|
||||||
|
|
||||||
Once complete, you can test the operating system in an emulator.
|
Once complete, you can test the operating system in an emulator.
|
||||||
* If you have Qemu and KVM installed, run `k` in the build system. **Recommended!**
|
* If you have Qemu and KVM installed, run `k` in the build system. **Recommended!**
|
||||||
|
|
|
@ -15,6 +15,4 @@ echo "Dependency.stb_image=0" >> bin/config.ini
|
||||||
echo "Dependency.stb_image_write=0" >> bin/config.ini
|
echo "Dependency.stb_image_write=0" >> bin/config.ini
|
||||||
echo "Dependency.stb_sprintf=0" >> bin/config.ini
|
echo "Dependency.stb_sprintf=0" >> bin/config.ini
|
||||||
echo "Dependency.FreeTypeAndHarfBuzz=0" >> bin/config.ini
|
echo "Dependency.FreeTypeAndHarfBuzz=0" >> bin/config.ini
|
||||||
./start.sh get-source prefix https://github.com/nakst/build-gcc/releases/download/gcc-11.1.0/gcc-x86_64-essence.tar.xz
|
|
||||||
./start.sh setup-pre-built-toolchain
|
|
||||||
./start.sh build-optimised
|
./start.sh build-optimised
|
||||||
|
|
|
@ -1966,7 +1966,15 @@ 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
|
||||||
BuildCrossCompiler();
|
BuildCrossCompiler();
|
||||||
|
#else
|
||||||
|
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();
|
||||||
|
#endif
|
||||||
runFirstCommand = "b";
|
runFirstCommand = "b";
|
||||||
foundValidCrossCompiler = true;
|
foundValidCrossCompiler = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue