Skip to content

Commit

Permalink
make build reproducible
Browse files Browse the repository at this point in the history
  • Loading branch information
chenhdc authored Feb 6, 2024
1 parent d9e3b40 commit cc3d4cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion capstone-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ fn build_capstone_cc() {
for arch_dir in find_arch_dirs().into_iter() {
files.append(&mut find_c_source_files(&arch_dir));
}
file.sort();
// add sort for resloving build-unproducible
files.sort();
let use_static_crt = {
let target_features = env::var("CARGO_CFG_TARGET_FEATURE").unwrap_or_default();
target_features.split(',').any(|f| f == "crt-static")
Expand Down

0 comments on commit cc3d4cd

Please sign in to comment.