interpreter: Also check for msvc style /fsanitize

pull/12650/head
Dylan Baker 3 years ago committed by Eli Schwartz
parent 8db1ca1766
commit 730cce09bd
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 2
      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:'):

Loading…
Cancel
Save