From 62b6840b0ed652f31c3cb542444675fec792f572 Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Sat, 15 Sep 2018 17:20:31 -0700 Subject: Replace all calls to Cwd::cwd with Cwd::getcwd The former calls /bin/pwd, while the latter uses the getcwd syscall directly. This eliminates some forks and execs from every build. --- lib/Debian/Debhelper/Buildsystem/meson.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Debian/Debhelper/Buildsystem/meson.pm b/lib/Debian/Debhelper/Buildsystem/meson.pm index 2ddd0c37..a90fb703 100644 --- a/lib/Debian/Debhelper/Buildsystem/meson.pm +++ b/lib/Debian/Debhelper/Buildsystem/meson.pm @@ -84,7 +84,7 @@ sub configure { # Make the file name absolute as meson will be called from the build dir. require Cwd; $cross_file =~ s{^\./}{}; - $cross_file = Cwd::cwd() . "/${cross_file}"; + $cross_file = Cwd::getcwd() . "/${cross_file}"; } push(@opts, '--cross-file', $cross_file); } -- cgit v1.2.3