diff --git a/near-sdk/compilation_tests/all.rs b/near-sdk/compilation_tests/all.rs index baad7f804..dcc1ebb38 100644 --- a/near-sdk/compilation_tests/all.rs +++ b/near-sdk/compilation_tests/all.rs @@ -21,9 +21,9 @@ fn compilation_tests() { t.pass("compilation_tests/function_error.rs"); t.pass("compilation_tests/enum_near_bindgen.rs"); t.pass("compilation_tests/schema_derive.rs"); - if rustversion::cfg!(since(1.72)) { - // The compilation error output has slightly changed in 1.72, so we - // snapshoted this new version + if rustversion::cfg!(since(1.78)) && std::env::consts::OS == "linux" { + // The compilation error output has slightly changed in 1.7x and between platforms, + // so we snapshoted this single version t.compile_fail("compilation_tests/schema_derive_invalids.rs"); } t.compile_fail("compilation_tests/generic_function.rs");