From dcc477e38cc40c46c86005dbb3fa8df460147362 Mon Sep 17 00:00:00 2001 From: Stefan Granitz Date: Fri, 17 May 2019 19:19:34 +0000 Subject: [PATCH] [CMake] Inline info plist in lldb driver llvm-svn: 361068 --- lldb/tools/driver/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lldb/tools/driver/CMakeLists.txt b/lldb/tools/driver/CMakeLists.txt index 9636e1e2c790..e6740d8dd534 100644 --- a/lldb/tools/driver/CMakeLists.txt +++ b/lldb/tools/driver/CMakeLists.txt @@ -2,6 +2,11 @@ set(LLVM_TARGET_DEFINITIONS Options.td) tablegen(LLVM Options.inc -gen-opt-parser-defs) add_public_tablegen_target(LLDBOptionsTableGen) +if(APPLE) + # Inline info plist in binary (use target_link_options for this as soon as CMake 3.13 is available) + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-sectcreate,__TEXT,__info_plist,${LLDB_SOURCE_DIR}/tools/driver/lldb-Info.plist") +endif() + add_lldb_tool(lldb Driver.cpp Platform.cpp