From 6f7bb79a5b543ebd9ccd72d7b1b289b1f6e4cedb Mon Sep 17 00:00:00 2001 From: Jaikiran Pai Date: Sat, 2 Dec 2023 05:38:07 +0000 Subject: [PATCH] 8320931: [REDO] dsymutil command leaves around temporary directories Reviewed-by: ihse, clanger --- make/autoconf/basic_tools.m4 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/make/autoconf/basic_tools.m4 b/make/autoconf/basic_tools.m4 index 92a4582ecdd..f9ecbab7ac0 100644 --- a/make/autoconf/basic_tools.m4 +++ b/make/autoconf/basic_tools.m4 @@ -390,6 +390,17 @@ AC_DEFUN_ONCE([BASIC_SETUP_COMPLEX_TOOLS], if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then UTIL_REQUIRE_PROGS(DSYMUTIL, dsymutil) + AC_MSG_CHECKING([if dsymutil supports --reproducer option]) + if $DSYMUTIL --help | $GREP -q '\--reproducer '; then + AC_MSG_RESULT([yes]) + # --reproducer option is supported + # set "--reproducer Off" to prevent unnecessary temporary + # directories creation + DSYMUTIL="$DSYMUTIL --reproducer Off" + else + # --reproducer option isn't supported + AC_MSG_RESULT([no]) + fi UTIL_REQUIRE_PROGS(MIG, mig) UTIL_REQUIRE_PROGS(XATTR, xattr) UTIL_LOOKUP_PROGS(CODESIGN, codesign)