summaryrefslogtreecommitdiff
path: root/dist/PathTools
diff options
context:
space:
mode:
authorRichard Leach <rich+perl@hyphen-dash-hyphen.info>2019-04-16 20:07:00 +0000
committerKarl Williamson <khw@cpan.org>2019-04-19 12:06:33 -0600
commitac9c4ce8f838f402cb706d7fd04db9c2c3c083b2 (patch)
tree5c4b08fb6a63fe514844e793b92951b1ba9dd0c1 /dist/PathTools
parenta4d51c47f3ff7e09a21ba35c257976b4d09a7bbe (diff)
downloadperl-ac9c4ce8f838f402cb706d7fd04db9c2c3c083b2.tar.gz
Silence Cwd.pm warning on Android builds if targetsh is not defined
Diffstat (limited to 'dist/PathTools')
-rw-r--r--dist/PathTools/Cwd.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/PathTools/Cwd.pm b/dist/PathTools/Cwd.pm
index ec3ad5ab45..9b173c234b 100644
--- a/dist/PathTools/Cwd.pm
+++ b/dist/PathTools/Cwd.pm
@@ -171,7 +171,7 @@ if($^O ne 'MSWin32') {
if ($^O =~ /android/) {
# If targetsh is executable, then we're either a full
# perl, or a miniperl for a native build.
- if (-x $Config::Config{targetsh}) {
+ if ( exists($Config::Config{targetsh}) && -x $Config::Config{targetsh}) {
$pwd_cmd = "$Config::Config{targetsh} -c pwd"
}
else {