Skip to content

Commit 1176637

Browse files
committed
bzip2-sys/build.rs: prefix-map for reproducibility
The -g CFLAG injects the build path into DW_AT_comp_dir which breaks reproducible builds for the debug target. Signed-off-by: Tim Orling <[email protected]>
1 parent 3032f37 commit 1176637

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bzip2-sys/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ fn main() {
2626
let dst = PathBuf::from(env::var_os("OUT_DIR").unwrap());
2727

2828
cfg.include("bzip2-1.0.8")
29+
.flag("-fdebug-prefix-map=$(pwd -L)=.")
2930
.define("_FILE_OFFSET_BITS", Some("64"))
3031
.define("BZ_NO_STDIO", None)
3132
.file("bzip2-1.0.8/blocksort.c")

0 commit comments

Comments
 (0)