diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2022-01-13 10:35:19 -0800 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2023-12-20 14:17:09 -0500 |
| commit | 730cce09bd75bfa3b1d702e42a5462a7c7d4f8ba (patch) | |
| tree | adb71b77b05f2137a9c2e39b7be522d51ad73121 | |
| parent | 8db1ca1766033cb18d0749a11c077773d84d3d63 (diff) | |
| download | meson-730cce09bd75bfa3b1d702e42a5462a7c7d4f8ba.tar.gz | |
interpreter: Also check for msvc style /fsanitize
| -rw-r--r-- | mesonbuild/interpreter/interpreter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py index adb99b827..b736aea41 100644 --- a/mesonbuild/interpreter/interpreter.py +++ b/mesonbuild/interpreter/interpreter.py @@ -2924,7 +2924,7 @@ class Interpreter(InterpreterBase, HoldableObject): mlog.warning(f'Consider using the built-in debug option instead of using "{arg}".', location=self.current_node) # Don't catch things like `-fsanitize-recover` - elif arg == '-fsanitize' or arg.startswith('-fsanitize='): + elif arg in {'-fsanitize', '/fsanitize'} or arg.startswith(('-fsanitize=', '/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:'): |
