Use -conf= to overwrite the default dmd config#7846
Use -conf= to overwrite the default dmd config#7846wilzbach wants to merge 2 commits intodlang:masterfrom
Conversation
|
Thanks for your pull request, @wilzbach! 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#7846" |
|
Line 677 in c55c9be |
I believe that only affects |
|
Then, shouldn't this PR also remove |
I can't think of a reason that |
|
One thought (somewhat unrelated). Sometimes it's nice to be able to copy the command line and run it on it's own (add/remove arguments like |
596e2ea to
feef3f0
Compare
| echo 'void main() {}' > "${src}" | ||
|
|
||
| # Only compile, not link, since optlink can't handle long file names | ||
| $DMD -m"${MODEL}" "${DFLAGS}" -c -of"${bin}" "${src}" |
There was a problem hiding this comment.
It should be "${DFLAGS[@]}" if expansion to multiple arguments is wanted, but DFLAGS is already an environment variable, so this isn't needed.
BTW it might be worthwhile to set -m"${MODEL}" in dflags too to avoid accidentally forgetting -m"${MODEL}" when it matters in the bash scripts.
I left it in d_do_test because the environment flags are printed on a failure. This isn't so important for the bash scripts, because you can't run them directly anyways and you see all variables used thanks to xtrace. |
It doesn't print the "environment variables" though...does it? |
|
Nope and we shouldn't be depending on the user to set environment variables to repeat the run of a test. I know in theory we could do Line 603 in e1f2be6 So the "redundant" |
Please address this. |
|
Ping @wilzbach |
|
The Makefile for running tests is deprecated. Closing this. |
-conf=should almost always be used in any of our Makefiles to avoid any issues with user-defined configuration files.Note: there's currently an permananet failure on some CIs. See also #7838 (comment)