From 0bf58024f5d15e3623ed1ecb08e7fd763b69a8e0 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 26 Aug 2020 21:22:34 -0500 Subject: [PATCH] [nostalgia] Cleanup setup-build --- scripts/setup-build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/setup-build b/scripts/setup-build index d5e244bf..2c250770 100755 --- a/scripts/setup-build +++ b/scripts/setup-build @@ -47,9 +47,9 @@ if 'NOSTALGIA_QT_PATH' in os.environ: else: qt_path = '' -buildDir = '{:s}/build/{:s}'.format(project, build_config) -mkdir(buildDir) -subprocess.run(['cmake', '-S', project, '-B', buildDir, '-GNinja', +build_dir = '{:s}/build/{:s}'.format(project, build_config) +mkdir(build_dir) +subprocess.run(['cmake', '-S', project, '-B', build_dir, '-GNinja', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DCMAKE_BUILD_TYPE={:s}'.format(build_type_arg), '-DUSE_ASAN={:s}'.format(sanitizer_status), @@ -61,7 +61,7 @@ subprocess.run(['cmake', '-S', project, '-B', buildDir, '-GNinja', ]) mkdir('dist') -if target != 'gba' and target != 'gba-debug': +if target != 'gba': cb = open('.current_build', 'w') cb.write(build_type) cb.close()