diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-08-21 23:11:22 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-08-22 12:46:57 +0300 |
commit | db04a3f5f212209d9c9656735480d5ec6589794f (patch) | |
tree | cb97f5d3f9d4c6beefe0791bb65542c77b0e30d7 | |
parent | e69b9c982cf09e12eb1af2105231e5808af34d1d (diff) | |
download | meson-db04a3f5f212209d9c9656735480d5ec6589794f.zip meson-db04a3f5f212209d9c9656735480d5ec6589794f.tar.gz meson-db04a3f5f212209d9c9656735480d5ec6589794f.tar.bz2 |
Fix incomplete guidance on solving sandbox violations
We recommend people use declare_dependency and access it via
dependency() in a parent project. But this requires a wrap file (or to
use override_dependency and an explicit subproject call).
Let's actually mention that.
Fixes #9146
-rw-r--r-- | mesonbuild/interpreter/interpreter.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py index 7aa2d27..f5820c5 100644 --- a/mesonbuild/interpreter/interpreter.py +++ b/mesonbuild/interpreter/interpreter.py @@ -2215,6 +2215,10 @@ This will become a hard error in the future.''' % kwargs['input'], location=self # In subproject some_dep = declare_dependency(include_directories: include_directories('include')) + # In subproject wrap file + [provide] + some = some_dep + # In parent project some_dep = dependency('some') executable(..., dependencies: [some_dep]) |