Skip to content

Commit 9ec238d

Browse files
committed
guix: remove ZERO_AR_DATE export
LLD enables ZERO_AR_DATE by default, setting it to zero would enable non-determinism, setting it to any other value is ignored. See: https://github.com/llvm/llvm-project/blob/main/lld/docs/MachO/ld64-vs-lld.rst.
1 parent f836f7e commit 9ec238d

File tree

3 files changed

+0
-14
lines changed

3 files changed

+0
-14
lines changed

contrib/guix/libexec/build.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -173,16 +173,6 @@ esac
173173
# Environment variables for determinism
174174
export TAR_OPTIONS="--owner=0 --group=0 --numeric-owner --mtime='@${SOURCE_DATE_EPOCH}' --sort=name"
175175
export TZ="UTC"
176-
case "$HOST" in
177-
*darwin*)
178-
# cctools AR, unlike GNU binutils AR, does not have a deterministic mode
179-
# or a configure flag to enable determinism by default, it only
180-
# understands if this env-var is set or not. See:
181-
#
182-
# https://github.com/tpoechtrager/cctools-port/blob/55562e4073dea0fbfd0b20e0bf69ffe6390c7f97/cctools/ar/archive.c#L334
183-
export ZERO_AR_DATE=yes
184-
;;
185-
esac
186176

187177
####################
188178
# Depends Building #

contrib/macdeploy/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ functionality so that a vanilla clang can take advantage. It supports the use of
6363
`-target`, `-mmacosx-version-min`, and `-isysroot`, which are all necessary when
6464
building for macOS.
6565

66-
These tools inject timestamps by default, which produce non-deterministic binaries. The
67-
`ZERO_AR_DATE` environment variable is used to disable that.
68-
6966
To complicate things further, all builds must target an Apple SDK. These SDKs are free to
7067
download, but not redistributable. See the SDK Extraction notes above for how to obtain it.
7168

depends/gen_id

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
echo "BEGIN AR"
5454
bash -c "${AR} --version"
5555
env | grep '^AR_'
56-
echo "ZERO_AR_DATE=${ZERO_AR_DATE}"
5756
echo "END AR"
5857

5958
echo "BEGIN NM"

0 commit comments

Comments
 (0)