diff options
author | Josh Triplett <josh@joshtriplett.org> | 2018-09-15 17:20:31 -0700 |
---|---|---|
committer | Josh Triplett <josh@joshtriplett.org> | 2018-09-15 17:20:31 -0700 |
commit | 62b6840b0ed652f31c3cb542444675fec792f572 (patch) | |
tree | 3d6ae3d7de0463229437be4876b71e8f1d5e3062 /lib/Debian | |
parent | 147350816049aecaed3f9a859e70128705c25af8 (diff) | |
download | debhelper-62b6840b0ed652f31c3cb542444675fec792f572.tar.gz |
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.
Diffstat (limited to 'lib/Debian')
-rw-r--r-- | lib/Debian/Debhelper/Buildsystem/meson.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |