Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions build-scripts/functions
Original file line number Diff line number Diff line change
Expand Up @@ -796,4 +796,11 @@ log_error() {
echo "$(basename "$0"): error:" "$@" >&2
}

# Pin embedded build timestamps so two builds of the same source produce identical binaries.
if [ -z "$SOURCE_DATE_EPOCH" ] && [ -d "$BASEDIR/core/.git" ]; then
SOURCE_DATE_EPOCH=$(git -C "$BASEDIR/core" log -1 --format=%ct)
export SOURCE_DATE_EPOCH
log_info "SOURCE_DATE_EPOCH=$SOURCE_DATE_EPOCH"
fi

_IS_FUNCTIONS_SOURCED=yes
Loading