[Backtracing] Don't use the hardened runtime for tests.

Using the hardened runtime for tests doesn't work.

rdar://107362003
This commit is contained in:
Alastair Houghton
2023-04-12 13:47:08 +01:00
parent e5680de071
commit c275939c9e
2 changed files with 2 additions and 2 deletions

View File

@@ -1024,7 +1024,7 @@ if run_vendor == 'apple':
if 'use_os_stdlib' not in lit_config.params:
config.target_codesign = make_path(config.swift_utils, "swift-darwin-postprocess.py")
else:
config.target_codesign = "codesign -f -s - --options=runtime --entitlements {}".format(os.path.join(config.swift_utils, 'get-task-allow.plist'))
config.target_codesign = "codesign -f -s - --entitlements {}".format(os.path.join(config.swift_utils, 'get-task-allow.plist'))
config.target_library_path_var = "DYLD_LIBRARY_PATH"
config.target_runtime = "objc"

View File

@@ -92,7 +92,7 @@ def unrpathize(filename):
def codesign(filename):
# "-" is the signing identity for ad-hoc signing.
command = ['/usr/bin/codesign', '--force', '--sign', '-',
'--options=runtime', '--entitlements', get_task_allow_plist,
'--entitlements', get_task_allow_plist,
filename]
subprocess.check_call(command)