fix: allow SOURCE_DATE_EPOCH to be overridable (#12342)

This commit is contained in:
Eniko Nagy
2024-11-06 15:44:12 +07:00
committed by GitHub
parent e34a88d2cc
commit 1a091a7643

View File

@ -62,7 +62,7 @@ install-op: ## Build and install the op-reth binary under `~/.cargo/bin`.
build: ## Build the reth binary into `target` directory.
cargo build --bin reth --features "$(FEATURES)" --profile "$(PROFILE)"
SOURCE_DATE_EPOCH := $(shell git log -1 --pretty=%ct)
SOURCE_DATE_EPOCH ?= $(shell git log -1 --pretty=%ct)
.PHONY: reproducible
reproducible: ## Build the reth binary into `target` directory with reproducible builds. Only works for x86_64-unknown-linux-gnu currently
SOURCE_DATE_EPOCH=$(SOURCE_DATE_EPOCH) \