From 31d0ce005c80929003c8764da3fcafdd029c9ed8 Mon Sep 17 00:00:00 2001 From: Stefan Granitz Date: Thu, 18 Apr 2019 16:37:22 +0000 Subject: [PATCH] [CMake] Emit LLDB.framework.dSYM to avoid potential name collision with driver's lldb.dSYM Summary: Emit framework's dSYM bundle as LLDB.framework.dSYM instead of LLDB.dSYM, because the latter could conflict with the driver's lldb.dSYM when emitted in the same directory on case-insensitive file systems. Requires https://reviews.llvm.org/D60862 Reviewers: friss, beanz, bogner Subscribers: mgorny, lldb-commits, #lldb Tags: #lldb Differential Revision: https://reviews.llvm.org/D60863 llvm-svn: 358686 --- lldb/source/API/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lldb/source/API/CMakeLists.txt b/lldb/source/API/CMakeLists.txt index 94c9e338f273..bb17f76d7fa1 100644 --- a/lldb/source/API/CMakeLists.txt +++ b/lldb/source/API/CMakeLists.txt @@ -9,6 +9,10 @@ if(NOT LLDB_DISABLE_PYTHON) set(lldb_python_wrapper ${lldb_scripts_dir}/LLDBWrapPython.cpp) endif() +if(LLDB_BUILD_FRAMEWORK AND LLVM_EXTERNALIZE_DEBUGINFO) + set(LLVM_EXTERNALIZE_DEBUGINFO_EXTENSION framework.dSYM) +endif() + add_lldb_library(liblldb SHARED SBAddress.cpp SBAttachInfo.cpp