From a1a0abe83befbbff4394f73e88b2fccdcaba8ae7 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 13 Jun 2020 04:18:37 -0500 Subject: [PATCH] [nostalgia] Make setup-build only overwrite current_build for native builds --- scripts/setup-build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/setup-build b/scripts/setup-build index 9188b922..9582279e 100755 --- a/scripts/setup-build +++ b/scripts/setup-build @@ -1,5 +1,7 @@ #! /usr/bin/env bash +set -e + target=$1 buildType=$2 @@ -42,6 +44,8 @@ cmake -S $project -B $buildDir -GNinja \ $toolchain mkdir -p dist -echo ${buildConfig} > .current_build +if [[ $target != gba ]] && [[ $target != gba-debug ]]; then + echo ${buildConfig} > .current_build +fi rm -f compile_commands.json ln -s build/${buildConfig}/compile_commands.json