Remove an obsolete workaround. (#505)

We needed a workaround when using wabt on old Linux distros due to using
old versions of `strtof`. With the switch to `wat`, we no longer need
these workarounds.
This commit is contained in:
Dan Gohman
2019-11-07 13:33:17 -08:00
committed by GitHub
parent a6b150c9d1
commit d896cc34c2
2 changed files with 0 additions and 29 deletions

View File

@@ -38,10 +38,6 @@ libc = "0.2.60"
rayon = "1.1" rayon = "1.1"
wasm-webidl-bindings = "0.6" wasm-webidl-bindings = "0.6"
# build.rs tests whether to enable a workaround for the libc strtof function.
[target.'cfg(target_os = "linux")'.build-dependencies]
libc = "0.2.60"
[workspace] [workspace]
members = [ members = [
"misc/wasmtime-rust", "misc/wasmtime-rust",

View File

@@ -210,30 +210,5 @@ fn ignore(testsuite: &str, testname: &str, strategy: &str) -> bool {
}; };
} }
#[cfg(target_os = "linux")]
{
// Test whether the libc correctly parses the following constant; if so,
// we can run the "const" test. If not, the "const" test will fail, since
// we use wabt to parse the tests and wabt uses strtof.
extern "C" {
pub fn strtof(s: *const libc::c_char, endp: *mut *mut libc::c_char) -> libc::c_float;
}
if unsafe {
strtof(
b"8.8817847263968443574e-16" as *const u8 as *const libc::c_char,
core::ptr::null_mut(),
)
}
.to_bits()
!= 0x26800001
{
return match (testsuite, testname) {
("spec_testsuite", "const") => true,
("single_file_spec_test", "simd_const") => true,
(_, _) => false,
};
}
}
false false
} }