Skip to content

Commit

Permalink
Disable BUILD_ID generation for musl target (project-oak#921)
Browse files Browse the repository at this point in the history
This was done in project-oak#863 for the gnu (libc) target

Ref project-oak#862
  • Loading branch information
tiziano88 authored Apr 30, 2020
1 parent d935b53 commit 01d4558
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,12 @@
#
# See https://linux.die.net/man/1/ld (--build-id flag).
rustflags = ["-C", "link-args=-Xlinker --build-id=none"]

[target.x86_64-unknown-linux-musl]
# Make NT_GNU_BUILD_ID header generation deterministic.
#
# Either `none` or `sha1` values would make the header deterministic, assuming the rest of the build
# process is deterministic.
#
# See https://linux.die.net/man/1/ld (--build-id flag).
rustflags = ["-C", "link-args=-Xlinker --build-id=none"]

0 comments on commit 01d4558

Please sign in to comment.