We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a46e36f commit 3e6a927Copy full SHA for 3e6a927
src/librustc_codegen_llvm/back/lto.rs
@@ -278,6 +278,7 @@ fn fat_lto(cgcx: &CodegenContext<LlvmCodegenBackend>,
278
}
279
280
}).collect::<Vec<_>>();
281
+ // Sort the modules to ensure we produce deterministic results.
282
new_modules.sort_by(|module1, module2| module1.1.partial_cmp(&module2.1).unwrap());
283
serialized_modules.extend(new_modules);
284
serialized_modules.extend(cached_modules.into_iter().map(|(buffer, wp)| {
0 commit comments