[CMake] Inline info plist in lldb driver

llvm-svn: 361068
This commit is contained in:
Stefan Granitz 2019-05-17 19:19:34 +00:00
parent a933030f84
commit dcc477e38c
1 changed files with 5 additions and 0 deletions

View File

@ -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