From 68b0cc21dcb8ded14bdd7e5ab453f974a97b0b7c Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Sun, 18 Apr 2021 23:45:49 -0700 Subject: [PATCH] build: Narrow 'make' target --- build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 6dcd891ba8..1dd025a5f2 100755 --- a/build.sh +++ b/build.sh @@ -147,6 +147,8 @@ do esac done +target="qemu-system-i386" + case "$(uname -s)" in # Adjust compilation options based on platform Linux) echo 'Compiling for Linux...' @@ -170,6 +172,7 @@ case "$(uname -s)" in # Adjust compilation options based on platform sys_cflags='-Wno-error' sys_opts='--python=python3 --disable-cocoa --disable-fortify-source' postbuild='package_windows' # set the above function to be called after build + target="qemu-system-i386.exe qemu-system-i386w.exe" ;; *) echo "could not detect OS $(uname -s), aborting" >&2 @@ -252,6 +255,6 @@ if ! test -f "${project_source_dir}/ui/imgui/imgui.cpp"; then ./scripts/git-submodule.sh update ui/imgui fi -time make -j"${job_count}" 2>&1 | tee build.log +time make -j"${job_count}" ${target} 2>&1 | tee build.log "${postbuild}" # call post build functions