Skip to content

Commit f83154d

Browse files
committed
Disable optimizations for some build-time crates
1 parent dc713ea commit f83154d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Cargo.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,24 @@ debug = 0
1010
incremental = true
1111
debug = 0 # set this to 1 or 2 to get more useful backtraces in debugger
1212

13+
# ideally, we would use `build-override` here, but some crates are also
14+
# needed at run-time and we end up compiling them twice
15+
[profile.release.package.proc-macro2]
16+
opt-level = 0
17+
[profile.release.package.quote]
18+
opt-level = 0
19+
[profile.release.package.syn]
20+
opt-level = 0
21+
[profile.release.package.serde_derive]
22+
opt-level = 0
23+
[profile.release.package.chalk-derive]
24+
opt-level = 0
25+
[profile.release.package.chalk-macros]
26+
opt-level = 0
27+
[profile.release.package.salsa-macros]
28+
opt-level = 0
29+
[profile.release.package.xtask]
30+
opt-level = 0
31+
1332
[patch.'crates-io']
1433
# rowan = { path = "../rowan" }

0 commit comments

Comments
 (0)