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

Fix dependencies for vala.links #13158

Closed
wants to merge 0 commits into from
Closed

Conversation

bcorby
Copy link
Contributor

@bcorby bcorby commented Apr 29, 2024

Using the keyword argument dependencies with compiler.links() for vala doesn't work as the library being linked to needs to be prefixed with --pkg= before being passed to valac.

@bcorby bcorby requested review from dcbaker and jpakkane as code owners April 29, 2024 00:40
@bcorby bcorby force-pushed the vala.links-fix branch 12 times, most recently from 89087db to b67e93a Compare April 29, 2024 05:37
Copy link
Member

@dcbaker dcbaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small nit, otherwise this looks fine to me

if mode is CompileCheckMode.LINK and self.force_link:
# As we are passing the parameter to valac we don't need the dependent libraries.
a = d.get_compile_args()
if len(a) > 0:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if len(a) > 0:
if a:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't know you could do this. Thanks.

@bcorby bcorby force-pushed the vala.links-fix branch 3 times, most recently from d8496bf to 4ad729e Compare April 30, 2024 00:58
@bcorby bcorby closed this Apr 30, 2024
dcbaker pushed a commit that referenced this pull request Apr 30, 2024
Using the keyword argument dependencies with compiler.links() for vala doesn't work as the library being linked to needs to be prefixed with --pkg= before being passed to valac.
soumyaDghosh pushed a commit to soumyaDghosh/meson that referenced this pull request Jun 4, 2024
Using the keyword argument dependencies with compiler.links() for vala doesn't work as the library being linked to needs to be prefixed with --pkg= before being passed to valac.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants