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

custom_targets can have conflicting depfiles #14150

Open
dcbaker opened this issue Jan 16, 2025 · 0 comments
Open

custom_targets can have conflicting depfiles #14150

dcbaker opened this issue Jan 16, 2025 · 0 comments
Labels

Comments

@dcbaker
Copy link
Member

dcbaker commented Jan 16, 2025

Describe the bug
Two custom_targets in the same directory with the same depfile will successfully configure, but will write to the same location, possibly racing, and confusing ninja

To Reproduce

foreach t : ['a', 'b']
  custom_target(..., depfile : 'dep.d')
endforeach

Expected behavior
Either Meson would have an error (like it would if two targets have the same outputs) or that Meson would write the depfiles into the target's private directory, avoiding such issues, or both.

system parameters

  • what meson --version 1.6.0
@dcbaker dcbaker added the bug label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant