1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use cd -P

Setting PWD in the process does not let `cd` traverse symlinks in
/bin/sh on macOS.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-10-03 06:48:35 +00:00
parent 1af6418742
commit b68f2a4bba

View file

@ -262,7 +262,7 @@ AS_CASE(["$build_os"],
@%:@error ignore linker warnings
@%:@endif
SRC
CC_WRAPPER=`PWD=; cd "$srcdir/tool" && pwd`/darwin-cc
CC_WRAPPER=`cd -P "$srcdir/tool" && pwd`/darwin-cc
CC="$CC_WRAPPER $CC"
])
])