Restore "[Darwin] Apply workaround to make symbolication in iOS simulators work"
authorJulian Lettner <julian.lettner@apple.com>
Fri, 24 Feb 2023 07:28:59 +0000 (23:28 -0800)
committerJulian Lettner <julian.lettner@apple.com>
Fri, 24 Feb 2023 07:31:02 +0000 (23:31 -0800)
This reverts commit d8b8911d58dba73fd7a28210d8d3e780ae881179.

compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py

index da61c02..47e7048 100755 (executable)
@@ -22,6 +22,11 @@ for e in [
   if e in os.environ:
     os.environ["SIMCTL_CHILD_" + e] = os.environ[e]
 
+find_atos_cmd = 'xcrun -sdk iphonesimulator -f atos'
+atos_path = subprocess.run(find_atos_cmd.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=True).stdout.decode().strip()
+for san in ['ASAN', 'TSAN', 'UBSAN', 'LSAN']:
+  os.environ[f'SIMCTL_CHILD_{san}_SYMBOLIZER_PATH'] = atos_path
+
 prog = sys.argv[1]
 exit_code = None
 if prog == 'rm':