Imported Upstream version 6.10.0.49

Former-commit-id: 1d6753294b2993e1fbf92de9366bb9544db4189b
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2020-01-16 16:38:04 +00:00
parent d94e79959b
commit 468663ddbb
48518 changed files with 2789335 additions and 61176 deletions

View File

@ -0,0 +1,32 @@
#!/usr/bin/python
import os, sys, subprocess
output = None
output_type = 'executable'
args = sys.argv[1:]
while args:
arg = args.pop(0)
if arg == '-shared':
output_type = 'shared'
elif arg == '-dynamiclib':
output_type = 'dylib'
elif arg == '-c':
output_type = 'object'
elif arg == '-S':
output_type = 'assembly'
elif arg == '-o':
output = args.pop(0)
if output == None:
print "No output file name!"
sys.exit(1)
ret = subprocess.call(sys.argv[1:])
if ret != 0:
sys.exit(ret)
# If we produce a dylib, ad-hoc sign it.
if output_type in ['shared', 'dylib']:
ret = subprocess.call(["codesign", "-s", "-", output])

View File

@ -0,0 +1,17 @@
#!/usr/bin/python
import os, sys, subprocess
idx = 1
for arg in sys.argv[1:]:
if not "=" in arg:
break
idx += 1
(argname, argval) = arg.split("=")
os.environ["SIMCTL_CHILD_" + argname] = argval
exitcode = subprocess.call(sys.argv[idx:])
if exitcode > 125:
exitcode = 126
sys.exit(exitcode)

View File

@ -0,0 +1,18 @@
#!/usr/bin/python
import os, sys, subprocess
if not "SANITIZER_IOSSIM_TEST_DEVICE_IDENTIFIER" in os.environ:
raise EnvironmentError("Specify SANITIZER_IOSSIM_TEST_DEVICE_IDENTIFIER to select which simulator to use.")
device_id = os.environ["SANITIZER_IOSSIM_TEST_DEVICE_IDENTIFIER"]
for e in ["ASAN_OPTIONS", "TSAN_OPTIONS"]:
if e in os.environ:
os.environ["SIMCTL_CHILD_" + e] = os.environ[e]
exitcode = subprocess.call(["xcrun", "simctl", "spawn", device_id] + sys.argv[1:])
if exitcode > 125:
exitcode = 126
sys.exit(exitcode)