aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-03-25 23:42:58 +0200
committerNirbheek Chauhan <nirbheek@centricular.com>2019-04-16 23:54:45 +0530
commit5da07de651bf1e444365de2f4d24441d18e71529 (patch)
tree2eadeaa1b879966500bf2ccd00cb43b94adff1fa
parent1e1011df70401f3615b400acc2e79c7069f7efed (diff)
downloadmeson-5da07de651bf1e444365de2f4d24441d18e71529.zip
meson-5da07de651bf1e444365de2f4d24441d18e71529.tar.gz
meson-5da07de651bf1e444365de2f4d24441d18e71529.tar.bz2
Reduce absolute paths to a deprecation. Closes #5050.
-rw-r--r--mesonbuild/interpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index e48733a..58f0aab 100644
--- a/mesonbuild/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -612,7 +612,7 @@ class Headers(InterpreterObject):
self.sources = sources
self.install_subdir = kwargs.get('subdir', '')
if os.path.isabs(self.install_subdir):
- raise InterpreterException('Subdir keyword must not be an absolute path.')
+ mlog.deprecation('Subdir keyword must not be an absolute path. This will be a hard error in the next release.')
self.custom_install_dir = kwargs.get('install_dir', None)
self.custom_install_mode = kwargs.get('install_mode', None)
if self.custom_install_dir is not None: