From 5d42085dd36f14aa3385547947ccd6e6c5f03d50 Mon Sep 17 00:00:00 2001 From: SulfurNitride Date: Tue, 28 Apr 2026 21:22:45 -0500 Subject: 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) --- build.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'build.sh') 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 \ -- cgit v1.3.1