[compiler-rt] [compiler-rt][sanitizer_common] Improve handling of env vars for iOS simulator tests (PR #146721)
Thurston Dang via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 2 11:06:35 PDT 2025
================
@@ -5,13 +5,13 @@
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
+ if not "=" in arg:
+ break
+ idx += 1
+ (argname, argval) = arg.split("=", maxsplit=1)
----------------
thurstond wrote:
The commit message mentions "a clang argument LSAN_OPTIONS=suppressions=lsan.supp was incorrectly split" and it looks like this line is the core fix, but there's also some other minor non-whitespace fixups (e.g., iossim_run.py avoids overwriting os.environ[simctl_version] if already set) - please mention them in the commit message too.
Other than that, looks good to me; thanks for the patch!
https://github.com/llvm/llvm-project/pull/146721
More information about the llvm-commits
mailing list