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 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
find_build_directory() {
|
find_build_directory() {
|
||||||
local build_dirs=(*/.ninja_log)
|
local build_dirs=(*/build.ninja)
|
||||||
|
|
||||||
if [[ ! -e ${build_dirs[0]} ]]; then
|
if [[ ! -e ${build_dirs[0]} ]]; then
|
||||||
echo "error: No build directory found. Have you run 'meson build' yet?" >&2
|
echo "error: No build directory found. Have you run 'meson build' yet?" >&2
|
||||||
|
|
Loading…
Add table
Reference in a new issue