commit | e117c6d52fd3aa2ec19af5577f9b0cf3fc13c7cc | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <peter@pcc.me.uk> | Tue Jul 15 19:37:54 2025 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Jul 15 19:50:33 2025 -0700 |
tree | 6993c83849357e5583d68c2aa627fc35c69b3707 | |
parent | bec4474b06ed4ed2c02b1252d81f612c033a1029 [diff] |
compiler-rt: test: Use the host instead of the target to select %expect_crash. When running tests in a cross-compiled build, %expect_crash is run on the host, not the target, so we need to check the host OS. config.host_os surprisingly refers to the target OS because it is derived from CMAKE_SYSTEM_NAME which specifies the target. See: https://cmake.org/cmake/help/latest/variable/CMAKE_SYSTEM_NAME.html Another speculative fix for: https://lab.llvm.org/buildbot/#/builders/193/builds/9070 GitOrigin-RevId: 968d38d1d7d9de2d5717457876bba2663b36f620