From ede0ed9a5979751020dbf4e4db7c891c5e937924 Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Mon, 15 Jun 2020 16:05:51 -0700 Subject: [PATCH] Only run reference types tests on x86_64 Cranelift does not support reference types on other targets. --- build.rs | 7 +++++-- tests/all/main.rs | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/build.rs b/build.rs index 2cbb4b3811fe..9c531ee56210 100644 --- a/build.rs +++ b/build.rs @@ -209,9 +209,12 @@ fn ignore(testsuite: &str, testname: &str, strategy: &str) -> bool { // testsuite repo. ("simd", "simd_const") => return true, + // Cranelift only supports reference types on x64. + #[cfg(target_arch = "x86_64")] + ("reference_types", "table_copy_on_imported_tables") + | ("reference_types", "externref_id_function") => return false, + // Still working on implementing these. See #929. - ("reference_types", "table_copy_on_imported_tables") => return false, - ("reference_types", "externref_id_function") => return false, ("reference_types", _) => return true, _ => {} diff --git a/tests/all/main.rs b/tests/all/main.rs index 5d8db9ffe2d4..a664807f5023 100644 --- a/tests/all/main.rs +++ b/tests/all/main.rs @@ -4,7 +4,6 @@ mod debug; mod externals; mod func; mod fuzzing; -mod gc; mod globals; mod iloop; mod import_calling_export; @@ -19,3 +18,7 @@ mod table; mod traps; mod use_after_drop; mod wast; + +// Cranelift only supports reference types on x64. +#[cfg(target_arch = "x86_64")] +mod gc;