Index: gyp/common_conditions.gypi |
diff --git a/gyp/common_conditions.gypi b/gyp/common_conditions.gypi |
index f8012b99d5344347131598e7eaaeb6918f4452e2..1cbdd7b45a62b79c7572f94fb56e031b3ffd0e29 100644 |
--- a/gyp/common_conditions.gypi |
+++ b/gyp/common_conditions.gypi |
@@ -277,26 +277,19 @@ |
}], |
], |
}], |
- [ 'skia_asan_build', { |
+ # Enable asan, tsan, etc. |
+ [ 'skia_sanitizer', { |
'cflags': [ |
- '-fsanitize=address', |
+ '-fsanitize=<(skia_sanitizer)', |
'-fno-omit-frame-pointer', |
], |
'ldflags': [ |
- '-fsanitize=address', |
- ], |
- }], |
- [ 'skia_tsan_build', { |
- 'cflags': [ |
- '-fsanitize=thread', |
- '-fno-omit-frame-pointer', |
- ], |
- 'ldflags': [ |
- '-fsanitize=thread', |
+ '-fsanitize=<(skia_sanitizer)', |
], |
}], |
[ 'skia_clang_build', { |
'cflags': [ |
+ # Extra warnings we like but that only Clang knows about. |
'-Wstring-conversion', |
], |
}], |