Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,12 @@ cpp-builtins = { path = "crates/builtins/cpp-builtins" }

[profile.release]
lto = "thin"
panic = 'abort'
strip = "symbols"

[profile.test-release]
inherits = "release"
lto = false

[profile.dev]
lto = false

Expand Down
10 changes: 5 additions & 5 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ build-release *TARGET:
test *TARGET:
cargo test --features debugmozjs --workspace {{TARGET}}

# Run all Rust tests in release mode.
# Run all Rust tests in the `test-release` profile: release optimizations without LTO.
test-release *TARGET:
cargo test --release --workspace {{TARGET}}
cargo test --profile test-release --workspace {{TARGET}}

# Run the starling shell with the given args.
run *ARGS:
Expand Down Expand Up @@ -143,10 +143,10 @@ test-wasm *TARGET:
{{_wasm_cargo}} test --target {{WASM_TARGET}} --features debugmozjs --workspace {{TARGET}}
@{{ if TARGET == "" { "just test-serve-wasm" } else { "echo 'Skipped the wasm serve end-to-end suite; run it with: just test-serve-wasm'" } }}

# Run all Rust tests in release mode. A run with no arguments also runs the wasm serve
# end-to-end suite.
# Run all Rust tests in the `test-release` profile: release optimizations without LTO. A run with
# no arguments also runs the wasm serve end-to-end suite against the full release build.
test-wasm-release *TARGET:
{{_wasm_cargo}} test --target {{WASM_TARGET}} --release --workspace {{TARGET}}
{{_wasm_cargo}} test --target {{WASM_TARGET}} --profile test-release --workspace {{TARGET}}
@{{ if TARGET == "" { "just test-serve-wasm-release" } else { "echo 'Skipped the wasm serve end-to-end suite; run it with: just test-serve-wasm-release'" } }}

# Snapshot the component with `wasmtime wizer` and serve the result. Needs wasmtime on PATH.
Expand Down
Loading