diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2022-01-13 09:54:11 -0800 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2023-12-20 14:17:09 -0500 |
| commit | 8db1ca1766033cb18d0749a11c077773d84d3d63 (patch) | |
| tree | ae976e9b7f7c88793466dca73b0ce7d9854f5dcb | |
| parent | 67c51820b71d2f3db728b373383cb36daac7bb7a (diff) | |
| download | meson-8db1ca1766033cb18d0749a11c077773d84d3d63.tar.gz | |
interpreter: Don't warn on -fsanitze-*
We really only want to warn on `-fsanitize=foo` or `-fsanitize foo`, but
not things like `-fsanitize-recover=...`
Fixes #9822
Fixes #7192
| -rw-r--r-- | mesonbuild/interpreter/interpreter.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py index f2e84a822..adb99b827 100644 --- a/mesonbuild/interpreter/interpreter.py +++ b/mesonbuild/interpreter/interpreter.py @@ -1,5 +1,6 @@ # SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2021 The Meson development team +# Copyright © 2023 Intel Corporation from __future__ import annotations @@ -2922,7 +2923,8 @@ class Interpreter(InterpreterBase, HoldableObject): elif arg == '-g': mlog.warning(f'Consider using the built-in debug option instead of using "{arg}".', location=self.current_node) - elif arg.startswith('-fsanitize'): + # Don't catch things like `-fsanitize-recover` + elif arg == '-fsanitize' or arg.startswith('-fsanitize='): mlog.warning(f'Consider using the built-in option for sanitizers instead of using "{arg}".', location=self.current_node) elif arg.startswith('-std=') or arg.startswith('/std:'): |
