diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2020-10-12 17:50:14 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-12 17:50:14 +0300 |
commit | aae23dfff3aa8269a07b6d42479a00923bf73c6e (patch) | |
tree | 6ab489fab1e889141ac3560af38c3da477628b7b /mesonbuild/dependencies/base.py | |
parent | ba71fde18652ca156a35cd576dd9981202088424 (diff) | |
parent | 726b82205492a9e1f2dfd0fba96b237b51eeb428 (diff) | |
download | meson-aae23dfff3aa8269a07b6d42479a00923bf73c6e.zip meson-aae23dfff3aa8269a07b6d42479a00923bf73c6e.tar.gz meson-aae23dfff3aa8269a07b6d42479a00923bf73c6e.tar.bz2 |
Merge pull request #7740 from bonzini/fallback-false
Allow blocking/forcing automatic subproject search
Diffstat (limited to 'mesonbuild/dependencies/base.py')
-rw-r--r-- | mesonbuild/dependencies/base.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py index 14db6a5..95202fe 100644 --- a/mesonbuild/dependencies/base.py +++ b/mesonbuild/dependencies/base.py @@ -2320,9 +2320,11 @@ def get_dep_identifier(name, kwargs) -> T.Tuple: # 'version' is irrelevant for caching; the caller must check version matches # 'native' is handled above with `for_machine` # 'required' is irrelevant for caching; the caller handles it separately - # 'fallback' subprojects cannot be cached -- they must be initialized + # 'fallback' and 'allow_fallback' is not part of the cache because, + # once a dependency has been found through a fallback, it should + # be used for the rest of the Meson run. # 'default_options' is only used in fallback case - if key in ('version', 'native', 'required', 'fallback', 'default_options', 'force_fallback'): + if key in ('version', 'native', 'required', 'fallback', 'allow_fallback', 'default_options'): continue # All keyword arguments are strings, ints, or lists (or lists of lists) if isinstance(value, list): |