• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1diff --git base/third_party/double_conversion/BUILD.gn base/third_party/double_conversion/BUILD.gn
2index 0083efdcd9c85..6f647c31e28aa 100644
3--- base/third_party/double_conversion/BUILD.gn
4+++ base/third_party/double_conversion/BUILD.gn
5@@ -9,6 +9,11 @@ config("config") {
6     "-Wno-unused-const-variable",
7     "-Wno-unused-function",
8   ]
9+
10+  # Build as C++17 to avoid export of templates that should be inlined.
11+  if (is_win) {
12+    cflags_cc = [ "/std:c++17" ]
13+  }
14 }
15
16 static_library("double_conversion") {
17diff --git base/win/BUILD.gn base/win/BUILD.gn
18index eb5dca74bcea3..be10cc59b39c7 100644
19--- base/win/BUILD.gn
20+++ base/win/BUILD.gn
21@@ -33,4 +33,7 @@ static_library("pe_image") {
22     "pe_image.cc",
23     "pe_image.h",
24   ]
25+
26+  # Build as C++17 to avoid export of templates that should be inlined.
27+  cflags_cc = [ "/std:c++17" ]
28 }
29