From 94c4f41ab8d5ad7226ee796a1ecbb95d6874a75f Mon Sep 17 00:00:00 2001 From: Mike Klein Date: Thu, 9 Aug 2018 17:24:45 -0400 Subject: [PATCH] in MS land, -include is /FI Change-Id: Ibfead1121f22277297e16196b37e6e86dc2d2166 Reviewed-on: https://skia-review.googlesource.com/146649 Reviewed-by: Ben Wagner Commit-Queue: Mike Klein --- gn/BUILD.gn | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/gn/BUILD.gn b/gn/BUILD.gn index 7edff663c5..9149a35753 100644 --- a/gn/BUILD.gn +++ b/gn/BUILD.gn @@ -272,11 +272,16 @@ config("default") { "-fsanitize=$sanitizers,$fyi_sanitizers", "-fno-sanitize-recover=$sanitizers", "-fsanitize-blacklist=$_blacklist", - "-include$_blacklist", ] - if (!is_win) { - cflags += [ "-fno-omit-frame-pointer" ] + if (is_win) { + cflags += [ "/FI$_blacklist" ] + } else { + cflags += [ + "-include$_blacklist", + "-fno-omit-frame-pointer", + ] } + if (is_linux) { cflags_cc += [ "-stdlib=libc++" ] ldflags += [ "-stdlib=libc++" ]