Skip to content
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

--target rollup option effect on linked libraries (--link-library option) #355

Open
greenhat opened this issue Nov 25, 2024 · 2 comments
Open
Labels
bug Something isn't working
Milestone

Comments

@greenhat
Copy link
Contributor

I was quite surprised that --target rollup only adds -link-library for std and base only if no other --link-library option is specified. As soon as I add custom library linking via --link-library the std and base disappear and I have to add them manually. Is it a bug or intended behavior?

@greenhat greenhat added this to the Beta 1 milestone Nov 25, 2024
@greenhat greenhat added the bug Something isn't working label Nov 25, 2024
@greenhat
Copy link
Contributor Author

greenhat commented Nov 25, 2024

I believe that it happens at

default_value_ifs([
("target", "base", "std"),
("target", "rollup", "std,base"),

@bitwalker
Copy link
Contributor

Yeah, setting link-library options when specifying certain --target options is a bit of a hack, I'm not sure we can make the combination of flags additive. We probably need to explicitly check if both options are provided, and if so, ensure that all of the implied link libraries for the given --target are still present (adding them if not).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants