[Lldb-commits] [lldb] r361068 - [CMake] Inline info plist in lldb driver
Stefan Granitz via lldb-commits
lldb-commits at lists.llvm.org
Fri May 17 12:19:34 PDT 2019
Author: stefan.graenitz
Date: Fri May 17 12:19:34 2019
New Revision: 361068
URL: http://llvm.org/viewvc/llvm-project?rev=361068&view=rev
Log:
[CMake] Inline info plist in lldb driver
Modified:
lldb/trunk/tools/driver/CMakeLists.txt
Modified: lldb/trunk/tools/driver/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/driver/CMakeLists.txt?rev=361068&r1=361067&r2=361068&view=diff
==============================================================================
--- lldb/trunk/tools/driver/CMakeLists.txt (original)
+++ lldb/trunk/tools/driver/CMakeLists.txt Fri May 17 12:19:34 2019
@@ -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
More information about the lldb-commits
mailing list