diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-06-01 15:16:22 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-06-02 11:56:27 +0300 |
commit | 506fbafed53c2f98986dfeaa5677cb6813b6e182 (patch) | |
tree | 3e22e9047061f2fc1ff16bdf32231f952ad7c6cb /mesonbuild/build.py | |
parent | 6662f36ed36b9fbee700993fa24ca99250161873 (diff) | |
download | meson-506fbafed53c2f98986dfeaa5677cb6813b6e182.zip meson-506fbafed53c2f98986dfeaa5677cb6813b6e182.tar.gz meson-506fbafed53c2f98986dfeaa5677cb6813b6e182.tar.bz2 |
Revert slashes in filenames being a hard error to give downstream projects time to transition.
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r-- | mesonbuild/build.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index eb1b826..2c55ed4 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -271,7 +271,10 @@ class EnvironmentVariables: class Target: def __init__(self, name, subdir, build_by_default): if '/' in name or '\\' in name: - raise InvalidArguments('Target name must not contain a path separator.') + # Fix failing test 53 when this becomes an error. + mlog.warning('''Target "%s" has a path separator in its name. +This is not supported, it can cause unexpected failures and will become +a hard error in the future.''' % name) self.name = name self.subdir = subdir self.build_by_default = build_by_default |