[nostalgia] Make setup-build only overwrite current_build for native builds
This commit is contained in:
parent
77ece05bf1
commit
a1a0abe83b
@ -1,5 +1,7 @@
|
|||||||
#! /usr/bin/env bash
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
target=$1
|
target=$1
|
||||||
buildType=$2
|
buildType=$2
|
||||||
|
|
||||||
@ -42,6 +44,8 @@ cmake -S $project -B $buildDir -GNinja \
|
|||||||
$toolchain
|
$toolchain
|
||||||
|
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
|
if [[ $target != gba ]] && [[ $target != gba-debug ]]; then
|
||||||
echo ${buildConfig} > .current_build
|
echo ${buildConfig} > .current_build
|
||||||
|
fi
|
||||||
rm -f compile_commands.json
|
rm -f compile_commands.json
|
||||||
ln -s build/${buildConfig}/compile_commands.json
|
ln -s build/${buildConfig}/compile_commands.json
|
||||||
|
Loading…
Reference in New Issue
Block a user