diff options
author | Christophe Gouiran <bechris13250@gmail.com> | 2018-01-07 19:09:53 +0100 |
---|---|---|
committer | Christophe Gouiran <bechris13250@gmail.com> | 2018-01-07 19:09:53 +0100 |
commit | 412315f8aeafc545c9d532df5a420b957883b00e (patch) | |
tree | 2d9a4ce1a9d82c824138ae0cece2d4308505c47d /mesonbuild/backend/vs2010backend.py | |
parent | 40e92c82abbb9a3e0f07c35c78a607e1f25c23c0 (diff) | |
download | meson-412315f8aeafc545c9d532df5a420b957883b00e.zip meson-412315f8aeafc545c9d532df5a420b957883b00e.tar.gz meson-412315f8aeafc545c9d532df5a420b957883b00e.tar.bz2 |
Modify exception raised when msvc pch is badly specified
Diffstat (limited to 'mesonbuild/backend/vs2010backend.py')
-rw-r--r-- | mesonbuild/backend/vs2010backend.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py index ebea8cb..367f391 100644 --- a/mesonbuild/backend/vs2010backend.py +++ b/mesonbuild/backend/vs2010backend.py @@ -863,7 +863,7 @@ class Vs2010Backend(backends.Backend): pch_node.text = 'Use' if compiler.id == 'msvc': if len(pch) != 2: - raise RuntimeError('MSVC requires one header and one source to produce precompiled headers.') + raise MesonException('MSVC requires one header and one source to produce precompiled headers.') pch_sources[lang] = [pch[0], pch[1], lang] else: # I don't know whether its relevant but let's handle other compilers |