Skip to content

Commit 6f7bb79

Browse files
committed
8320931: [REDO] dsymutil command leaves around temporary directories
Reviewed-by: ihse, clanger
1 parent 8be3e39 commit 6f7bb79

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

make/autoconf/basic_tools.m4

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,17 @@ AC_DEFUN_ONCE([BASIC_SETUP_COMPLEX_TOOLS],
390390
391391
if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
392392
UTIL_REQUIRE_PROGS(DSYMUTIL, dsymutil)
393+
AC_MSG_CHECKING([if dsymutil supports --reproducer option])
394+
if $DSYMUTIL --help | $GREP -q '\--reproducer '; then
395+
AC_MSG_RESULT([yes])
396+
# --reproducer option is supported
397+
# set "--reproducer Off" to prevent unnecessary temporary
398+
# directories creation
399+
DSYMUTIL="$DSYMUTIL --reproducer Off"
400+
else
401+
# --reproducer option isn't supported
402+
AC_MSG_RESULT([no])
403+
fi
393404
UTIL_REQUIRE_PROGS(MIG, mig)
394405
UTIL_REQUIRE_PROGS(XATTR, xattr)
395406
UTIL_LOOKUP_PROGS(CODESIGN, codesign)

0 commit comments

Comments
 (0)