diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-06-14 15:36:16 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-06-22 09:12:54 -0700 |
commit | f2ad5e377e0c70f4c7292f6abb33cbaa283d84b2 (patch) | |
tree | 79b53a7e0653aba6d6e05842e3b5bc20dda9c179 /mesonbuild/backend/backends.py | |
parent | bee4dc9f78ad6f6d81df34816d28c06520e972a1 (diff) | |
download | meson-f2ad5e377e0c70f4c7292f6abb33cbaa283d84b2.zip meson-f2ad5e377e0c70f4c7292f6abb33cbaa283d84b2.tar.gz meson-f2ad5e377e0c70f4c7292f6abb33cbaa283d84b2.tar.bz2 |
backend: Headers.install_subdir is allowed to be None
But we don't properly handle that.
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r-- | mesonbuild/backend/backends.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index 2652ae6..4e1ac1e 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -1445,7 +1445,12 @@ class Backend: for h in headers: outdir = h.get_custom_install_dir() if outdir is None: - outdir = os.path.join(incroot, h.get_install_subdir()) + subdir = h.get_install_subdir() + if subdir is None: + outdir = incroot + else: + outdir = os.path.join(incroot, subdir) + for f in h.get_sources(): if not isinstance(f, File): raise MesonException(f'Invalid header type {f!r} can\'t be installed') |