@@ -388,8 +388,12 @@ fn compare(previous: &Report, current: &Report) -> Vec<String> {
388388 ) ;
389389 }
390390 if previous. compiler_build != current. compiler_build {
391- changes. push (
392- "compiler build differs; review and remeasure under identical build settings" . into ( ) ,
391+ // The native utility's optimization level affects measurement time,
392+ // not the requested Wasm profile. Keep it as provenance; all emitted
393+ // module, section, function, and resource budgets still apply below.
394+ println ! (
395+ "Native compiler build changed: {} -> {}" ,
396+ previous. compiler_build, current. compiler_build,
393397 ) ;
394398 }
395399 for ( name, now) in & current. fixtures {
@@ -666,20 +670,15 @@ mod tests {
666670 }
667671
668672 #[ test]
669- fn tool_versions_are_provenance_but_compiler_build_changes_require_review ( ) {
673+ fn native_build_and_tool_versions_are_provenance_but_wasm_growth_requires_review ( ) {
670674 let before = report ( ) ;
671675 let mut after: Report =
672676 serde_json:: from_value ( serde_json:: to_value ( & before) . unwrap ( ) ) . unwrap ( ) ;
673677 after. rustc = "new stable Rust" . into ( ) ;
674678 after. node = "new Node 24 patch" . into ( ) ;
675679 assert ! ( compare( & before, & after) . is_empty( ) ) ;
676680 after. compiler_build = "different build settings" . into ( ) ;
677- assert ! (
678- compare( & before, & after)
679- . iter( )
680- . any( |change| change. contains( "compiler build differs" ) )
681- ) ;
682- after. compiler_build = before. compiler_build . clone ( ) ;
681+ assert ! ( compare( & before, & after) . is_empty( ) ) ;
683682 after. fixtures . get_mut ( "native" ) . unwrap ( ) . module_bytes += 1 ;
684683 assert ! (
685684 compare( & before, & after)
0 commit comments