Ghidra is a software reverse engineering (SRE) framework
GP-0: fix for odd brew unpack issue
d-millar66bbf59c5130
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.shindex 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.