diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-05-30 15:00:37 +0530 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-05-30 23:10:43 +0300 |
commit | 00654aeb11e110d41567a0ff00300619c705170f (patch) | |
tree | 2e54159525ecddc8bcc9fa3159dba44af871fe80 /mesonbuild | |
parent | 0627e9d616dc311b7c9b0ef17301f680ac9e78a7 (diff) | |
download | meson-00654aeb11e110d41567a0ff00300619c705170f.zip meson-00654aeb11e110d41567a0ff00300619c705170f.tar.gz meson-00654aeb11e110d41567a0ff00300619c705170f.tar.bz2 |
Don't accept an empty string for name_suffix:
This is never going to be useful, and the error message now points
people to what they might be expecting: use the default value for this
platform.
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/build.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 362a6de..b6399bb 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -789,6 +789,10 @@ This will become a hard error in a future Meson release.''') else: if not isinstance(name_suffix, str): raise InvalidArguments('name_suffix must be a string.') + if name_suffix == '': + raise InvalidArguments('name_suffix should not be an empty string. ' + 'If you want meson to use the default behaviour ' + 'for each platform pass `[]` (empty array)') self.suffix = name_suffix self.name_suffix_set = True if isinstance(self, StaticLibrary): |