Update more rustc/libtest things for wasm64
* Add wasm64 variants for inline assembly along the same lines as wasm32 * Update a few directives in libtest to check for `target_family` instead of `target_arch` * Update some rustc codegen and typechecks specialized for wasm32 to also work for wasm64.
This commit is contained in:
parent
d208e1943b
commit
d2a3c24a95
8 changed files with 16 additions and 12 deletions
|
@ -284,7 +284,7 @@ pub fn run_tests_console(opts: &TestOpts, tests: Vec<TestDescAndFn>) -> io::Resu
|
|||
// Prevent the usage of `Instant` in some cases:
|
||||
// - It's currently not supported for wasm targets.
|
||||
// - We disable it for miri because it's not available when isolation is enabled.
|
||||
let is_instant_supported = !cfg!(target_arch = "wasm32") && !cfg!(miri);
|
||||
let is_instant_supported = !cfg!(target_family = "wasm") && !cfg!(miri);
|
||||
|
||||
let start_time = is_instant_supported.then(Instant::now);
|
||||
run_tests(opts, tests, |x| on_test_event(&x, &mut st, &mut *out))?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue