diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2019-03-21 21:01:07 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-03-21 21:01:07 +0200 |
commit | ce623623a7dc4a99d4a94186a3f810ba51fadad3 (patch) | |
tree | 0e2d77ed691bf53c0500960edee25df3bba03b0c | |
parent | 3a613564d3f2db35ca03b2b8658f7050f5ed56d7 (diff) | |
download | meson-pchtext.tar.gz |
Better error message when PCH argument is not a string.pchtext
-rw-r--r-- | mesonbuild/build.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 20f0cdb28..4edbc0138 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -1102,6 +1102,8 @@ You probably should put it in link_with instead.''') elif len(pchlist) > 2: raise InvalidArguments('PCH definition may have a maximum of 2 files.') for f in pchlist: + if not isinstance(f, str): + raise MesonException('PCH arguments must be strings.') if not os.path.isfile(os.path.join(self.environment.source_dir, self.subdir, f)): raise MesonException('File %s does not exist.' % f) self.pch[language] = pchlist |