[all-commits] [llvm/llvm-project] 3fb0de: [Darwin] Fix OS version checks inside simulators
Julian Lettner via All-commits
all-commits at lists.llvm.org
Tue Jul 28 09:28:24 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 3fb0de820796cc6e322c8378713d375d9870a353
https://github.com/llvm/llvm-project/commit/3fb0de820796cc6e322c8378713d375d9870a353
Author: Julian Lettner <julian.lettner at apple.com>
Date: 2020-07-28 (Tue, 28 Jul 2020)
Changed paths:
M compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp
M compiler-rt/lib/sanitizer_common/tests/sanitizer_mac_test.cpp
Log Message:
-----------
[Darwin] Fix OS version checks inside simulators
compiler-rt checks OS versions by querying the Darwin kernel version.
This is not necessarily correct inside the simulators if the simulator
runtime is not aligned with the host macOS. Let's instead check the
`SIMULATOR_RUNTIME_VERSION` env var.
rdar://63031937
Reviewed By: delcypher
Differential Revision: https://reviews.llvm.org/D83977
More information about the All-commits
mailing list