Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

feat: add trie prefetch when executing blocks #56

Merged
merged 5 commits into from
Sep 3, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
fix build commands
Keefe Liu committed Sep 2, 2024
commit 2c2cb097834f062258cf999fd8964ad04eccb294
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -53,14 +53,14 @@ install: ## Build and install the reth binary under `~/.cargo/bin`.
.PHONY: install-op
install-op: ## Build and install the op-reth binary under `~/.cargo/bin`.
cargo install --path bin/reth --bin op-reth --force --locked \
--features "optimism,opbnb,$(FEATURES)" \
--features "optimism opbnb $(FEATURES)" \
--profile "$(PROFILE)" \
$(CARGO_INSTALL_EXTRA_FLAGS)

.PHONY: install-bsc
install-bsc: ## Build and install the bsc-reth binary under `~/.cargo/bin`.
cargo install --path bin/reth --bin bsc-reth --force --locked \
--features "bsc,$(FEATURES)" \
--features "bsc $(FEATURES)" \
--profile "$(PROFILE)" \
$(CARGO_INSTALL_EXTRA_FLAGS)

@@ -70,21 +70,21 @@ build: ## Build the reth binary into `target` directory.

.PHONY: build-op
build-op: ## Build the op-reth binary into `target` directory.
cargo build --bin op-reth --features "optimism,opbnb,$(FEATURES)" --profile "$(PROFILE)"
cargo build --bin op-reth --features "optimism opbnb $(FEATURES)" --profile "$(PROFILE)"

.PHONY: build-bsc
build-bsc: ## Build the bsc-reth binary into `target` directory.
cargo build --bin bsc-reth --features "bsc,$(FEATURES)" --profile "$(PROFILE)"
cargo build --bin bsc-reth --features "bsc $(FEATURES)" --profile "$(PROFILE)"

# Builds the reth binary natively.
build-native-%:
cargo build --bin reth --target $* --features "$(FEATURES)" --profile "$(PROFILE)"

op-build-native-%:
cargo build --bin op-reth --target $* --features "optimism,opbnb,$(FEATURES)" --profile "$(PROFILE)"
cargo build --bin op-reth --target $* --features "optimism opbnb $(FEATURES)" --profile "$(PROFILE)"

bsc-build-native-%:
cargo build --bin bsc-reth --target $* --features "bsc,$(FEATURES)" --profile "$(PROFILE)"
cargo build --bin bsc-reth --target $* --features "bsc $(FEATURES)" --profile "$(PROFILE)"

# The following commands use `cross` to build a cross-compile.
#
@@ -123,11 +123,11 @@ build-%:

op-build-%:
RUSTFLAGS="-C link-arg=-lgcc -Clink-arg=-static-libgcc" \
cross build --bin op-reth --target $* --features "optimism,opbnb,$(FEATURES)" --profile "$(PROFILE)"
cross build --bin op-reth --target $* --features "optimism opbnb $(FEATURES)" --profile "$(PROFILE)"

bsc-build-%:
RUSTFLAGS="-C link-arg=-lgcc -Clink-arg=-static-libgcc" \
cross build --bin bsc-reth --target $* --features "bsc,$(FEATURES)" --profile "$(PROFILE)"
cross build --bin bsc-reth --target $* --features "bsc $(FEATURES)" --profile "$(PROFILE)"

# Unfortunately we can't easily use cross to build for Darwin because of licensing issues.
# If we wanted to, we would need to build a custom Docker image with the SDK available.