mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user