mesonbuild / meson

The Meson Build System
http://mesonbuild.com
Apache License 2.0
5.3k stars 1.52k forks source link

interpreter: Fix dependency(..., modules: x) fallback #13122

Open oleavr opened 3 weeks ago

oleavr commented 3 weeks ago

Where the subproject got registered without modules, but is later looked up with modules specified.

We cannot do the filtering in get_dep_identifier(), as the list of modules matters in case of external dependencies.

eli-schwartz commented 3 weeks ago

How does a subproject fallback with modules generally check the modules?

oleavr commented 3 weeks ago

How does a subproject fallback with modules generally check the modules?

That's the part that had me stumped, so I went with assuming that a subproject fallback can satisfy all of them. That's a lie though -- the options could in theory disable features that impact the list of available modules.