Skip to content

Commit

Permalink
build: compile macro crates with some optimizations (#4327)
Browse files Browse the repository at this point in the history
## What This PR Does
Compile `oxc_macros` and `oxc_ast_macros` with `O1` in debug builds.

This should make consuming crates compile faster, as well as test
binaries (oxc_linter tests take a while to compile when developing rules
locally)
  • Loading branch information
DonIsaac authored Jul 17, 2024
1 parent 697c0ef commit 650615c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ ignored = ["napi", "oxc_transform_napi", "prettyplease"]
# and we don't rely on it for debugging that much.
debug = false

[profile.dev.package]
# Compile macros with some optimizations to make consuming crates build faster
oxc_macros.opt-level = 1
oxc_ast_macros.opt-level = 1

[profile.release.package.oxc_wasm]
opt-level = 'z'

Expand Down

0 comments on commit 650615c

Please sign in to comment.