diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-10-28 18:03:31 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2021-11-20 20:48:29 -0500 |
commit | dbb109703e0b1f91965868c3ab193eff6e45eb22 (patch) | |
tree | 3e07a1bbcc8d82af19c7fc878f82253ac8f7d82f /mesonbuild/build.py | |
parent | 4a65f3dead0d230312bd8a58f8fc1df642389033 (diff) | |
download | meson-dbb109703e0b1f91965868c3ab193eff6e45eb22.zip meson-dbb109703e0b1f91965868c3ab193eff6e45eb22.tar.gz meson-dbb109703e0b1f91965868c3ab193eff6e45eb22.tar.bz2 |
convert more mlog.deprecation into FeatureDeprecated
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r-- | mesonbuild/build.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 0d606e6..18c0911 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -40,7 +40,7 @@ from .compilers import ( is_known_suffix, detect_static_linker, detect_compiler_for ) from .linkers import StaticLinker -from .interpreterbase import FeatureNew +from .interpreterbase import FeatureNew, FeatureDeprecated if T.TYPE_CHECKING: from ._typing import ImmutableListProtocol, ImmutableSetProtocol @@ -1421,7 +1421,8 @@ You probably should put it in link_with instead.''') if os.path.dirname(pchlist[0]) != os.path.dirname(pchlist[1]): raise InvalidArguments('PCH files must be stored in the same folder.') - mlog.warning('PCH source files are deprecated, only a single header file should be used.') + FeatureDeprecated.single_use('PCH source files', '0.50.0', self.subproject, + 'Only a single header file should be used.') elif len(pchlist) > 2: raise InvalidArguments('PCH definition may have a maximum of 2 files.') for f in pchlist: |