Skip to content

Commit

Permalink
[meson] replace deprecated meson.build_root() use
Browse files Browse the repository at this point in the history
  • Loading branch information
gstrauss committed Jan 12, 2024
1 parent 75ce80e commit f5072e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if target_machine.system() != 'windows'

env = environment()
env.set('srcdir', meson.current_source_dir())
env.set('top_builddir', meson.build_root())
env.set('top_builddir', meson.current_build_dir() + '/..')

tests = [
'request.t',
Expand Down
1 change: 1 addition & 0 deletions tests/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ fi
if test "x${top_builddir}" = "x"; then
top_builddir=..
fi
top_builddir=${top_builddir%/tests/..}

echo "Testing in build directory: '${top_builddir}' and cwd: '$(pwd)'"

Expand Down

0 comments on commit f5072e2

Please sign in to comment.