From 1b37305b0f3bfcf510a47fd38fb226c0364958ea Mon Sep 17 00:00:00 2001 From: oltolm Date: Wed, 21 Apr 2021 15:46:53 +0000 Subject: VS: Add support for ASAN -fsanitize=address flag Map it to the `EnableASAN` element in `.vcxproj` files. Fixes: #21081 --- Templates/MSBuild/FlagTables/v142_CL.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Templates/MSBuild/FlagTables/v142_CL.json b/Templates/MSBuild/FlagTables/v142_CL.json index 7c2d291..9f07961 100644 --- a/Templates/MSBuild/FlagTables/v142_CL.json +++ b/Templates/MSBuild/FlagTables/v142_CL.json @@ -1222,5 +1222,12 @@ "UserValue", "UserRequired" ] + }, + { + "name": "EnableASAN", + "switch": "fsanitize=address", + "comment": "Enable Address Sanitizer", + "value": "true", + "flags": [] } ] -- cgit v0.12