From bc8552214335f084dbf72a8209a2362c582a3bdc Mon Sep 17 00:00:00 2001 From: Aiken Harris Date: Mon, 7 Jul 2025 09:18:39 +0200 Subject: [PATCH] Enable minimal build --- build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index f071450..9561c8c 100755 --- a/build.sh +++ b/build.sh @@ -18,6 +18,7 @@ GENERIC="generic-w64-mingw32" # Default Configuration BUILD_JOBS=0 +BUILD_MINIMAL=0 CLEAN_BUILD=0 ENABLE_LLVM_ASSEMBLY=0 LLVM_DYNAMIC_LINK=ON @@ -286,7 +287,7 @@ prepare_environment() # Prints usage help print_usage() { - echo "USAGE: ${0} [--clean] [--enable-llvm-assembly] [--jobs=N] [--static-llvm] [--target={linux,windows}]" + echo "USAGE: ${0} [--clean] [--enable-llvm-assembly] [--jobs=N] [--minimal] [--static-llvm] [--target={linux,windows}]" exit 1 } @@ -392,6 +393,9 @@ while [ $# -gt 0 ]; do # Sets number of CPU cores used for compilation BUILD_JOBS="${1#*=}" ;; + --minimal) + BUILD_MINIMAL=1 + ;; --static-llvm) # Compiles LLVM statically LLVM_DYNAMIC_LINK=OFF