-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run.dlang.org: Compiler flags ignored after adding dependency #748
Comments
That's a known, although undocumented limitation. Without dependencies, our command-line invitation looks something like this:
( On the other hand, when you have dependencies we use this:
You can check the entry point source code of our docker container here: https://github.com/dlang-tour/core-exec/blob/master/entrypoint.sh In order to set compiler arguments using dub, you need to use I agree that it would be nice if setting the compiler flags in Pull request are welcome :P |
The code below properly runs the unittest. However, it also gives a big warning from dub that it should be called with --build=unittest. The more I've thought about it, the more it seems the solution isn't so easy. The entrypoint.sh file depends on the dub.json comment so you'd need to update that, maybe whenever hitting run, with whatever $args there are. Some other potential solutions:
EDIT: Some additional comments |
@PetarKirov I have done some work here for getting |
This issue is combining together issues 734 747.
run.dlang.io is ignoring compiler flags when dependencies are included. Those two issues detail the issue with respect to -main and -unittest. I have also noticed the issue with --version, whereby the version information is produced when there are no dependencies and then it is not displayed when a dependency is added.
The text was updated successfully, but these errors were encountered: