[PATCH] D70151: Add `%match_min_os_deployment_version_to_target` lit substitution.
Dan Liew via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 12 17:31:05 PST 2019
delcypher created this revision.
delcypher added reviewers: yln, kubamracek.
Herald added projects: Sanitizers, LLVM.
Herald added a subscriber: Sanitizers.
This substitution expands to the clang flag that sets the minimum
deployment target OS version to the version of the OS that the
testing target uses.
This requires querying the test target at testing time
for the OS version of the target. We assume that
`%run sw_vers -productVersion` can obtain this.
For the iOS simulator the `sw_vers` command does not exist
so we emulate a subset of the command's capabilities by
probing the environment of the simulator.
The motivation here is that bbde056b88 made all sanitizer tests
run with the lowest deployment target possible. This means we
no longer test newer deployment targets. This patch will make it
possible to write lit tests that target newer deployment targets.
rdar://problem/57127911
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D70151
Files:
compiler-rt/test/lit.common.cfg.py
compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70151.228985.patch
Type: text/x-patch
Size: 4039 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191113/775a471b/attachment.bin>
More information about the llvm-commits
mailing list