Don't add phobos library dependences with -defaultlib=#9831
Don't add phobos library dependences with -defaultlib=#9831marler8997 wants to merge 2 commits intodlang:masterfrom
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#9831" |
f7ae0d4 to
5674ab1
Compare
|
Maybe |
|
What about moving the default libs to the command line in Then DMD doesn't need to hard-code all of the default libraries and it can be customized on a per-package/distribution/platform basis. If users don't want to link in any default libraries, they just use |
|
I have use cases where I want to remove the default libraries without having to remove anything else that is currently in dmd.conf. I still want the default library paths provided in dmd.conf. I may still add the phobos2 library, probably via a pragma. So whether or not the libraries we're hard-coded, or in dmd.conf, I would still need this flag, making that change orthogonal. |
|
@rainers I didn't know about |
|
Still need a changelog entry anywhichway. |
9167e50 to
836f5d0
Compare
0f6fe3c to
941560d
Compare
d55173a to
1e951dc
Compare
Codecov Report
@@ Coverage Diff @@
## master #9831 +/- ##
==========================================
+ Coverage 84.67% 84.68% +<.01%
==========================================
Files 144 144
Lines 74524 74524
==========================================
+ Hits 63102 63109 +7
+ Misses 11422 11415 -7
Continue to review full report at Codecov.
|
93ba888 to
142e8ef
Compare
ae84dee to
2fc680a
Compare
|
I'm stumped on this one. Looks like on the linux platforms where the host/target are different bit-widths ( https://auto-tester.puremagic.com/show-run.ghtml?projectid=1&runid=3663202&isPull=true Even though you can see we are explicitly providing |
|
@wilzbach's suggestions for the changelog are still not applied and have been incorrectly marked as resolved by @thewilsonator. |
2fc680a to
0869a95
Compare
|
|
From the top of the "build dmd" task: the failing Linux runs use |
|
If you could convert the shell test to D, that would be great, the less of them we have the better. |
|
Yeah I'll convert the test to D. |
63cb793 to
acdc375
Compare
acdc375 to
65cd06f
Compare
|
Ok bash test is now in D. Still need to figure out the linker issue when testing druntime though. |
|
Yep, it looks like you need to do more adjustments to the Makefiles in |
|
I've added a commit to put the core libs (pthread/m/dl/rt) at the end of the link command, but still getting the undefined reference errors in the linker... |
|
Cleaning up old PRs that aren't going anywhere. |
This PR depends on:
dlang/phobos#7021 [MERGED]
dlang/druntime#2619 [MERGED]
dlang/phobos#7050 [MERGED]
dlang/druntime#2625 [MERGED]