From 2b917f1f457181550bc876a0fe6496ed986b3189 Mon Sep 17 00:00:00 2001 From: Ed Ye Date: Mon, 1 Jul 2024 16:07:01 -0400 Subject: [PATCH 1/4] build scripts --- build-linux.sh | 3 +++ code/custom/bin/buildsuper_x64-linux.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 build-linux.sh diff --git a/build-linux.sh b/build-linux.sh new file mode 100755 index 000000000..c40be23c2 --- /dev/null +++ b/build-linux.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +sh code/bin/build-linux.sh diff --git a/code/custom/bin/buildsuper_x64-linux.sh b/code/custom/bin/buildsuper_x64-linux.sh index d175b40a3..815e3115a 100755 --- a/code/custom/bin/buildsuper_x64-linux.sh +++ b/code/custom/bin/buildsuper_x64-linux.sh @@ -15,7 +15,7 @@ if [ -z "$SOURCE" ]; then fi echo SOURCE = $SOURCE -opts="-Wno-write-strings -Wno-null-dereference -Wno-comment -Wno-switch -Wno-missing-declarations -Wno-logical-op-parentheses -g -DOS_LINUX=1 -DOS_WINDOWS=0 -DOS_MAC=0" +opts="-O0 -Wno-write-strings -Wno-null-dereference -Wno-comment -Wno-switch -Wno-missing-declarations -Wno-logical-op-parentheses -g -DOS_LINUX=1 -DOS_WINDOWS=0 -DOS_MAC=0" arch=-m64 debug=-g From f93907a284ee5244c315a56eb2a2bcbfff54dee8 Mon Sep 17 00:00:00 2001 From: Ed Ye Date: Fri, 19 Sep 2025 00:04:48 -0400 Subject: [PATCH 2/4] remove changes --- build-linux.sh | 3 --- code/custom/bin/buildsuper_x64-linux.sh | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 100755 build-linux.sh diff --git a/build-linux.sh b/build-linux.sh deleted file mode 100755 index c40be23c2..000000000 --- a/build-linux.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env sh - -sh code/bin/build-linux.sh diff --git a/code/custom/bin/buildsuper_x64-linux.sh b/code/custom/bin/buildsuper_x64-linux.sh index 815e3115a..d175b40a3 100755 --- a/code/custom/bin/buildsuper_x64-linux.sh +++ b/code/custom/bin/buildsuper_x64-linux.sh @@ -15,7 +15,7 @@ if [ -z "$SOURCE" ]; then fi echo SOURCE = $SOURCE -opts="-O0 -Wno-write-strings -Wno-null-dereference -Wno-comment -Wno-switch -Wno-missing-declarations -Wno-logical-op-parentheses -g -DOS_LINUX=1 -DOS_WINDOWS=0 -DOS_MAC=0" +opts="-Wno-write-strings -Wno-null-dereference -Wno-comment -Wno-switch -Wno-missing-declarations -Wno-logical-op-parentheses -g -DOS_LINUX=1 -DOS_WINDOWS=0 -DOS_MAC=0" arch=-m64 debug=-g From e8c18747200b1b1028c3e03262da8248c1712e2e Mon Sep 17 00:00:00 2001 From: Ed Ye Date: Fri, 19 Sep 2025 00:08:15 -0400 Subject: [PATCH 3/4] Need 7zip for windows --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 83a671a00..64e1c3b4d 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Welcome to the 4coder community repository. ## Windows 1. Setup the MSVC toolchain in your environment, this can be done with the `code/custom/bin/setup_cl_x64.bat` script -2. call the `package.bat` script from the code directory (this builds a distribution in the `distributions` directory with all the non-binary dependencies) +2. Download the [7-Zip installer](https://7-zip.org/download.html). Install 7-Zip to `C:\Program Files\7-Zip`. Call the `package.bat` script from the code directory (this builds a distribution in the `distributions` directory with all the non-binary dependencies) 1. `$ cd 4cc\code` 2. `.\bin\package.bat` 3. You can also use the `build.bat` script if you want just build the binaries (this produces the build artifacts in the `build` directory, this doesn't produce a functional distribution) From 871a865cf85287433a2ab8c04d1fb8f79db5fb7f Mon Sep 17 00:00:00 2001 From: Ed Ye Date: Fri, 19 Sep 2025 00:09:51 -0400 Subject: [PATCH 4/4] i doubt people are using 32bit systems --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 64e1c3b4d..c2d75070e 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Welcome to the 4coder community repository. ## Windows 1. Setup the MSVC toolchain in your environment, this can be done with the `code/custom/bin/setup_cl_x64.bat` script -2. Download the [7-Zip installer](https://7-zip.org/download.html). Install 7-Zip to `C:\Program Files\7-Zip`. Call the `package.bat` script from the code directory (this builds a distribution in the `distributions` directory with all the non-binary dependencies) +2. Download the [7-Zip installer](https://7-zip.org/download.html) for 64-bit Windows x64. Install 7-Zip to `C:\Program Files\7-Zip`. Call the `package.bat` script from the code directory (this builds a distribution in the `distributions` directory with all the non-binary dependencies) 1. `$ cd 4cc\code` 2. `.\bin\package.bat` 3. You can also use the `build.bat` script if you want just build the binaries (this produces the build artifacts in the `build` directory, this doesn't produce a functional distribution)