From 66bbf59c5130efd2bd2fdb93dfdc2c8dd86db792 Mon Sep 17 00:00:00 2001 From: d-millar <33498836+d-millar@users.noreply.github.com> Date: Mon, 17 Jul 2023 18:15:22 -0400 Subject: [PATCH] GP-0: fix for odd brew unpack issue --- .../Debugger-swig-lldb/macos_debugger_lldb_build_from_brew.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Ghidra/Debug/Debugger-swig-lldb/macos_debugger_lldb_build_from_brew.sh b/Ghidra/Debug/Debugger-swig-lldb/macos_debugger_lldb_build_from_brew.sh index 998fe84c57..e18b542252 100755 --- a/Ghidra/Debug/Debugger-swig-lldb/macos_debugger_lldb_build_from_brew.sh +++ b/Ghidra/Debug/Debugger-swig-lldb/macos_debugger_lldb_build_from_brew.sh @@ -43,6 +43,9 @@ LLVM_TEMP_DIR=$(mktemp -d) # brew specific patches. brew unpack --patch --destdir ${LLVM_TEMP_DIR} llvm@${LLVM_VERSION} export LLVM_HOME="$(echo ${LLVM_TEMP_DIR}/llvm@${LLVM_VERSION}-*)" +if [ -z "${LLVM_HOME}" ]; then + export LLVM_HOME="$(echo ${LLVM_TEMP_DIR}/llvm-*)" +fi # Set the appropriate build variables to link and compile the # liblldb-java library below.