[compiler-rt] 361bb47 - Restore "[Darwin] Apply workaround to make symbolication in iOS simulators work"
Julian Lettner via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 23 23:31:08 PST 2023
Author: Julian Lettner
Date: 2023-02-23T23:31:02-08:00
New Revision: 361bb473782b8d0a908fa78bbbd1f7c697057119
URL: https://github.com/llvm/llvm-project/commit/361bb473782b8d0a908fa78bbbd1f7c697057119
DIFF: https://github.com/llvm/llvm-project/commit/361bb473782b8d0a908fa78bbbd1f7c697057119.diff
LOG: Restore "[Darwin] Apply workaround to make symbolication in iOS simulators work"
This reverts commit d8b8911d58dba73fd7a28210d8d3e780ae881179.
Added:
Modified:
compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py
Removed:
################################################################################
diff --git a/compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py b/compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py
index da61c024968ac..47e7048f96e44 100755
--- a/compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py
+++ b/compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py
@@ -22,6 +22,11 @@
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':
More information about the llvm-commits
mailing list