cargo builds proc-macros twice based on the profile #13321
Labels
A-proc-macro
Area: compiling proc-macros
A-profiles
Area: profiles
A-workspaces
Area: workspaces
C-bug
Category: bug
S-needs-design
Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Problem
I've recently noticed a difference when building alacritty in debug and release build that I have
216
deps in debug, but217
in release. I've started investigating and found out that some proc macros are being built twice, but with slight difference (not in features though).In the log I found the following for
--release
build (--debug has just one of these lines).And the difference in each line is only the following:
which is just different optimization level, but I build debug and release at the same time when doing release, so it sounds weird? I've tried removing
profile
in workspace and it didn't help.Steps
Then you can sort the files, remove empty lines and some garbage, and
diff
them to discover the diff in basically one line and after you remove it the end diff is the same with the same amount of occurrences foralacritty_config_derive
.Possible Solution(s)
No response
Notes
I've seen #10645 , but I don't have different features and I'm not sure how to solve that, it seems like some
.so
artifacts are not used at all.Version
The text was updated successfully, but these errors were encountered: