Skip to content

Commit c1548e8

Browse files
authored
Merge pull request #1951 from vedantk/wip/upstream-entitlement
[repl_swift] Add get-task-allow entitlement
2 parents ed468a3 + d9e4ea4 commit c1548e8

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

lldb/tools/repl/swift/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@ if (CMAKE_HOST_APPLE AND APPLE)
66
endif()
77

88
# Requires system-provided Swift libs.
9-
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.14.4)
9+
if(NOT APPLE_EMBEDDED)
10+
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.14.4)
11+
endif()
1012

1113
add_lldb_tool(repl_swift ADD_TO_FRAMEWORK
1214
main.c
15+
16+
ENTITLEMENTS
17+
"${CMAKE_CURRENT_SOURCE_DIR}/get-task-allow-entitlements.plist"
1318
)
1419
target_link_libraries(repl_swift PRIVATE ${CMAKE_DL_LIBS})
1520
if(CMAKE_SYSTEM_NAME STREQUAL Windows)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.get-task-allow</key>
6+
<true/>
7+
</dict>
8+
</plist>

0 commit comments

Comments
 (0)