sort symbols

This commit is contained in:
Folkert 2022-08-30 15:00:58 +02:00
parent a274da62d3
commit ab2163b800
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -154,6 +154,10 @@ fn generate_dynamic_lib(
}
}
// on windows (PE) binary search is used on the symbols,
// so they must be in alphabetical order
custom_names.sort_unstable();
let bytes = crate::generate_dylib::generate(target, &custom_names)
.unwrap_or_else(|e| internal_error!("{}", e));