Skip to content

Conversation

@ndrewh
Copy link
Contributor

@ndrewh ndrewh commented Dec 8, 2025

Some Darwin test configurations use a %run wrapper. We should also use this wrapper when doing OS detection and feature detection.

@github-actions
Copy link

github-actions bot commented Dec 8, 2025

✅ With the latest revision this PR passed the Python code formatter.

@ndrewh ndrewh requested a review from wrotki December 8, 2025 18:05
@ndrewh ndrewh force-pushed the sanitizer-device-detection branch from 7f13799 to ccddcfb Compare December 8, 2025 18:52
@ndrewh ndrewh changed the title [sanitizer_common] [Darwin] OS/feature detection should use the run-wrapper [compiler-rt] [Darwin] OS/feature detection should use the run-wrapper Dec 8, 2025
Copy link
Contributor

@wrotki wrotki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I wonder how come this: str(config.darwin_osx_version[0]) wasn't bombing out before? Can't see darwin_osx_version defined anywhere.

# There is no simulator-specific sw_vers/sysctl, so we use the host OS version
os_detection_prefix = []

config.darwin_osx_version = osx_version
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wrotki It was previously defined here.

@ndrewh ndrewh merged commit 60587b2 into llvm:main Dec 16, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants