Skip to content

Commit c275939

Browse files
committed
[Backtracing] Don't use the hardened runtime for tests.
Using the hardened runtime for tests doesn't work. rdar://107362003
1 parent e5680de commit c275939

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/lit.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ if run_vendor == 'apple':
10241024
if 'use_os_stdlib' not in lit_config.params:
10251025
config.target_codesign = make_path(config.swift_utils, "swift-darwin-postprocess.py")
10261026
else:
1027-
config.target_codesign = "codesign -f -s - --options=runtime --entitlements {}".format(os.path.join(config.swift_utils, 'get-task-allow.plist'))
1027+
config.target_codesign = "codesign -f -s - --entitlements {}".format(os.path.join(config.swift_utils, 'get-task-allow.plist'))
10281028

10291029
config.target_library_path_var = "DYLD_LIBRARY_PATH"
10301030
config.target_runtime = "objc"

utils/swift-darwin-postprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def unrpathize(filename):
9292
def codesign(filename):
9393
# "-" is the signing identity for ad-hoc signing.
9494
command = ['/usr/bin/codesign', '--force', '--sign', '-',
95-
'--options=runtime', '--entitlements', get_task_allow_plist,
95+
'--entitlements', get_task_allow_plist,
9696
filename]
9797
subprocess.check_call(command)
9898

0 commit comments

Comments
 (0)