| Index: build/config/win/BUILD.gn
|
| diff --git a/build/config/win/BUILD.gn b/build/config/win/BUILD.gn
|
| index a4ffedc4501a893fba4388b2a3bcb9080ab3ed92..eeb1cab25a6fb6413a663d730450f396ded89e23 100644
|
| --- a/build/config/win/BUILD.gn
|
| +++ b/build/config/win/BUILD.gn
|
| @@ -33,6 +33,7 @@
|
|
|
| cflags = [
|
| "/Gy", # Enable function-level linking.
|
| + "/GS", # Enable buffer security checking.
|
| "/FS", # Preserve previous PDB behavior.
|
| "/bigobj", # Some of our files are bigger than the regular limits.
|
|
|
| @@ -40,10 +41,6 @@
|
| # and unsupported but very handy.
|
| "/d2FastFail",
|
| ]
|
| - if (!is_clang) {
|
| - # TODO(thakis): Enable this with clang too, https://crbug.com/598767
|
| - cflags += [ "/GS" ] # Enable buffer security checking.
|
| - }
|
|
|
| # Force C/C++ mode for the given GN detected file type. This is necessary
|
| # for precompiled headers where the same source file is compiled in both
|
|
|