diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-03-20 23:56:00 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-03-21 19:34:08 +0200 |
commit | 6fc5a2a1a24a0f1e60d0e31e2821e1b1efd67da4 (patch) | |
tree | c45f0bf4db577d99bad98962c06655b1e4d76137 /mesonbuild/interpreter.py | |
parent | dd614015e079d3ef6f64a38d349deca49b4f03ce (diff) | |
download | meson-fix3270.tar.gz |
Do not install configure_file output if install_dir is empty. Closes #3270.fix3270
Diffstat (limited to 'mesonbuild/interpreter.py')
-rw-r--r-- | mesonbuild/interpreter.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index 029fe59c6..16798a437 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -2973,9 +2973,11 @@ root and issuing %s. conffile = os.path.normpath(inputfile.relative_name()) if conffile not in self.build_def_files: self.build_def_files.append(conffile) - # Install file if requested + # Install file if requested, we check for the empty string + # for backwards compatibility. That was the behaviour before + # 0.45.0 so preserve it. idir = kwargs.get('install_dir', None) - if isinstance(idir, str): + if isinstance(idir, str) and idir: cfile = mesonlib.File.from_built_file(ofile_path, ofile_fname) self.build.data.append(build.Data([cfile], idir)) return mesonlib.File.from_built_file(self.subdir, output) |