From 01d45583058374fcac01a4dc236f31d68d1058b3 Mon Sep 17 00:00:00 2001 From: Tiziano Santoro Date: Thu, 30 Apr 2020 13:25:09 +0100 Subject: [PATCH] Disable BUILD_ID generation for musl target (#921) This was done in #863 for the gnu (libc) target Ref #862 --- .cargo/config | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.cargo/config b/.cargo/config index 7293b4e8f18..6ec7fc4b242 100644 --- a/.cargo/config +++ b/.cargo/config @@ -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"]