Skip to content

Commit

Permalink
Disable LTO for check-benchmarks and CLI clippy (#438)
Browse files Browse the repository at this point in the history
* Disable LTO for check-benchmarks

* Also disable LTO for clippy
  • Loading branch information
jeffcharles authored Jul 28, 2023
1 parent d6d9203 commit 20befe7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ bench: cli
cargo bench --package=javy-cli

check-bench:
cargo check --package=javy-cli --release --benches
CARGO_PROFILE_RELEASE_LTO=off cargo check --package=javy-cli --release --benches

# Disabling LTO substantially improves compile time
cli: core
Expand Down Expand Up @@ -75,7 +75,7 @@ fmt-core:
# This reduces the size of the target directory which improves CI stability.
fmt-cli:
cargo fmt --package=javy-cli -- --check
cargo clippy --package=javy-cli --release --all-targets -- -D warnings
CARGO_PROFILE_RELEASE_LTO=off cargo clippy --package=javy-cli --release --all-targets -- -D warnings

clean: clean-wasi-sdk clean-cargo

Expand Down

0 comments on commit 20befe7

Please sign in to comment.