Skip to content

Commit

Permalink
build: sort files to make build reproducible (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenhdc committed Feb 16, 2024
1 parent 7c9a51f commit 685f1e0
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));
}

// 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 685f1e0

Please sign in to comment.