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
Package-dependent compiler flags #10
Comments
So you're saying this is more organized than being required to put those flags in your package.json compilerFlags or linkFlags? Seems okay. It would be better if those dependencies themselves declared that any dependents must be compiled with particular flags or that the final executable must be linked with particular flags. Then all of that can be automatically added without you even having to know about it as the user of those dependencies. That's the kind of stuff we can do when everything uses CommonML. |
No, as it stands right now,
(hacked build output)
|
So what does the correct compile command look like? |
Yeah I can see why this would be good to have. |
Adding
{"dependency": "core"}
tofindlibPackages
will cause failure in a build, because the package demands either the-threads
or-vmthread
flag. I added a bit of code to be able to group these kinds of flags with their dependencies:I'm not 100% sure it's a great idea. I like the explicit nature of this, and if different packages have conflicting packages, it's easier to point out as an exception. But compiler flags feel like a higher-level concept than packages, so I'm not sure about it.
The text was updated successfully, but these errors were encountered: