aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorSulfurNitride <SulfurNitride@users.noreply.github.com>2026-04-28 21:22:45 -0500
committerSulfurNitride <SulfurNitride@users.noreply.github.com>2026-04-28 21:22:45 -0500
commit5d42085dd36f14aa3385547947ccd6e6c5f03d50 (patch)
treead09bcb7acf58caba0cc53411d5bab4df0d17899 /build.sh
parent2edfae46cc600079cb705e78f885df1fac269ce2 (diff)
Strip remaining Windows-only conditionals across src/src/
Removes every #ifdef _WIN32 / #ifndef _WIN32 / Q_OS_WIN block from the organizer source tree. The Linux build is the only target this fork produces, so the dead Windows branches were just noise. Stubs for Win32-shaped APIs that the upstream code references (FILETIME, HANDLE, DWORD, etc.) live in shared/windows_compat.h so the surrounding source keeps compiling without rewriting every signature. Also: - Reimplemented env::DirectoryWalker / env::forEachEntry / env::Module / env::Process / env::WindowsInfo as Linux-only (uname, /etc/os-release, /proc, std::filesystem) since the Win32 branches that previously held those implementations are gone. - Reduced spawn.cpp / processrunner.cpp / env.cpp to their Linux paths; dropped the helper:: namespace, Win-only waitForAllUSVFSProcesses- WithLock(), Steam Win-registry probe, and Windows mini-dump path. - Linux launcher uses BUILD_JOBS (default 4) so docker rebuilds during the audit don't pin the host. Build verified after every batch with ./build.sh tarball. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index dac1aec..27afc98 100755
--- a/build.sh
+++ b/build.sh
@@ -72,11 +72,16 @@ if [ "${BUILD_MODE}" = "shell" ]; then
fi
echo "=== Starting build (mode: ${BUILD_MODE}) ==="
+# BUILD_JOBS controls parallelism (override with `BUILD_JOBS=N ./build.sh`).
+# Defaults to all available cores; set to 4 by default for the in-progress
+# code-review pass to keep the host responsive.
+BUILD_JOBS="${BUILD_JOBS:-4}"
${DOCKER} run --rm \
-v "${SCRIPT_DIR}:/src:rw" \
-v "${CCACHE_DIR}:/ccache:rw" \
-e CCACHE_DIR=/ccache \
-e BUILD_MODE="${BUILD_MODE}" \
+ -e BUILD_JOBS="${BUILD_JOBS}" \
-w /src \
--device /dev/fuse \
--cap-add SYS_ADMIN \