Conversation
|
Thanks for your pull request and interest in making D better, @marler8997! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub fetch digger
dub run digger -- build "master + dmd#10446" |
You'll need to give it another force push. |
eb811be to
d45807f
Compare
|
I don't know how build.d works, but it appears to simply grab all the .d files in the directory. This causes it to fail on my machine, as I tend to leave around other .d files, and my editor makes backup files by prepending |
|
With this PR the CodeCov coverage report dropped to 1.8%: https://codecov.io/gh/dlang/dmd/tree/6bb95b5bed514070e13ec9a497f47a80e8dfc5c7 |
|
Sounds like we are missing |
|
After doing some digging, I think the problem could be that we are now passing in absolute paths for the filenames. I also had to convert to relative names to fix doc generation in #10516 |
|
fix here: #10520 |
|
@marler8997 This change caused the file size of the https://perf.dlang.io/#size-dmd;size-dmd;1570028973.2662013;1570217574.2034426 |
|
Guess this difference is caused by ‘build.d‘ including debug symbols unless ‘ENABLE_RELEASE‘ is specified |
|
Seems doubtful, the difference between a debug and release build is rarely just 10% of the binary size, usually it's closer to an order of magnitude. |
|
Could it be that perf.dlang.io builds the default target, not release? According to this change https://perf.dlang.io/#size-dmd;size-dmd;1525732319.848405;1526707174.5968058 enabling debug information for that added abaout 3 MB. |
|
@CyberShadow thanks for finding this. I'll try to see what's going on here. |
|
@CyberShadow where is this dmd binary coming from that your TrenD tool is analyzing? |
|
Looks like the reason for the change in size is that
When I removed one of the extra files I think enabling LTO would solve any issues with including extra source files that aren't being used. We could also go through the current build to see if dmd is including any source files that aren't being used and remove them. At the time this PR was integrated, |
|
I've created a PR to remove the new |
Move compiling the main dmd executable into
build.d.