diff options
| author | bors <bors@rust-lang.org> | 2020-01-16 17:43:19 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-01-16 17:43:19 +0000 |
| commit | 48840618382eccb8a799320c8e5d08e3b52f4c42 (patch) | |
| tree | ba3c99b7f597c8ba67a57158b9d0af029c81510e /src/libstd/sys | |
| parent | 117ceeba400e69aa7b8ba5155acd1c8c0cdf7f7f (diff) | |
| parent | a529e70be1db5601b224eea741ccbab74f22b0c4 (diff) | |
| download | rust-48840618382eccb8a799320c8e5d08e3b52f4c42.tar.gz rust-48840618382eccb8a799320c8e5d08e3b52f4c42.zip | |
Auto merge of #68286 - Dylan-DPC:rollup-x7ssgov, r=Dylan-DPC
Rollup of 5 pull requests Successful merges: - #68033 (Don't use f64 shims for f32 cmath functions on non 32-bit x86 MSVC) - #68244 (Enable leak sanitizer test case) - #68255 (Remove unused auxiliary file that was replaced with rust_test_helpers) - #68263 (rustdoc: HTML escape codeblocks which fail syntax highlighting) - #68274 (remove dead code) Failed merges: r? @ghost
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/windows/cmath.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/sys/windows/cmath.rs b/src/libstd/sys/windows/cmath.rs index 6f5d40b494f..1a5421facd0 100644 --- a/src/libstd/sys/windows/cmath.rs +++ b/src/libstd/sys/windows/cmath.rs @@ -27,7 +27,7 @@ extern "C" { pub use self::shims::*; -#[cfg(not(target_env = "msvc"))] +#[cfg(not(all(target_env = "msvc", target_arch = "x86")))] mod shims { use libc::c_float; @@ -43,10 +43,10 @@ mod shims { } } -// On MSVC these functions aren't defined, so we just define shims which promote -// everything fo f64, perform the calculation, and then demote back to f32. -// While not precisely correct should be "correct enough" for now. -#[cfg(target_env = "msvc")] +// On 32-bit x86 MSVC these functions aren't defined, so we just define shims +// which promote everything fo f64, perform the calculation, and then demote +// back to f32. While not precisely correct should be "correct enough" for now. +#[cfg(all(target_env = "msvc", target_arch = "x86"))] mod shims { use libc::c_float; |
