Index: runtime/BUILD.gn |
diff --git a/runtime/BUILD.gn b/runtime/BUILD.gn |
index d2ccb47489d203dd510bab7000a4c7a51aa080c9..56ddeff0bdb39715122c7cfaf00a3759ba6ec3b6 100644 |
--- a/runtime/BUILD.gn |
+++ b/runtime/BUILD.gn |
@@ -153,36 +153,38 @@ config("dart_config") { |
defines += ["NDEBUG"] |
} |
- cflags = [ |
- "-Werror", |
- "-Wall", |
- "-Wextra", # Also known as -W. |
- "-Wno-unused-parameter", |
- "-Wnon-virtual-dtor", |
- "-Wvla", |
- "-Wno-conversion-null", |
- "-Woverloaded-virtual", |
- "-g3", |
- "-ggdb3", |
- "-fno-rtti", |
- "-fno-exceptions", |
- ] |
- |
- if (dart_debug) { |
- cflags += [ |
- "-O1", |
+ if (!is_win) { |
+ cflags = [ |
+ "-Werror", |
+ "-Wall", |
+ "-Wextra", # Also known as -W. |
+ "-Wno-unused-parameter", |
+ "-Wnon-virtual-dtor", |
+ "-Wvla", |
+ "-Wno-conversion-null", |
+ "-Woverloaded-virtual", |
+ "-g3", |
+ "-ggdb3", |
+ "-fno-rtti", |
+ "-fno-exceptions", |
] |
- } else { |
- cflags += [ |
- "-O3", |
- ] |
- } |
- if (defined(is_asan) && is_asan) { |
- ldflags = [ |
- "-Wl,-u_sanitizer_options_link_helper", |
- "-fsanitize=address", |
- ] |
+ if (dart_debug) { |
+ cflags += [ |
+ "-O1", |
+ ] |
+ } else { |
+ cflags += [ |
+ "-O3", |
+ ] |
+ } |
+ |
+ if (defined(is_asan) && is_asan) { |
+ ldflags = [ |
+ "-Wl,-u_sanitizer_options_link_helper", |
+ "-fsanitize=address", |
+ ] |
+ } |
} |
} |