build-aux: detect build dir based on build.ninja
.ninja.log is only present after building (successful or otherwise) the project, but build.ninja is output as soon as the build dir is setup. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
72dae345e4
commit
0318e84546
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
find_build_directory() {
|
||||
local build_dirs=(*/.ninja_log)
|
||||
local build_dirs=(*/build.ninja)
|
||||
|
||||
if [[ ! -e ${build_dirs[0]} ]]; then
|
||||
echo "error: No build directory found. Have you run 'meson build' yet?" >&2
|
||||
|
Loading…
Reference in New Issue
Block a user