2020-01-07 14:07:03 +01:00
|
|
|
diff --git base/third_party/double_conversion/BUILD.gn base/third_party/double_conversion/BUILD.gn
|
2022-09-26 21:30:45 +02:00
|
|
|
index 8380f58d995bc..c0755bf9870b4 100644
|
2020-01-07 14:07:03 +01:00
|
|
|
--- base/third_party/double_conversion/BUILD.gn
|
|
|
|
+++ base/third_party/double_conversion/BUILD.gn
|
|
|
|
@@ -9,6 +9,11 @@ config("config") {
|
|
|
|
"-Wno-unused-const-variable",
|
|
|
|
"-Wno-unused-function",
|
|
|
|
]
|
|
|
|
+
|
|
|
|
+ # Build as C++17 to avoid export of templates that should be inlined.
|
|
|
|
+ if (is_win) {
|
|
|
|
+ cflags_cc = [ "/std:c++17" ]
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
|
|
|
|
static_library("double_conversion") {
|
2020-02-19 02:18:35 +01:00
|
|
|
diff --git base/win/BUILD.gn base/win/BUILD.gn
|
2022-09-26 21:30:45 +02:00
|
|
|
index d915a9320750c..5661652c9b2da 100644
|
2020-02-19 02:18:35 +01:00
|
|
|
--- base/win/BUILD.gn
|
|
|
|
+++ base/win/BUILD.gn
|
2020-08-29 00:39:23 +02:00
|
|
|
@@ -33,4 +33,7 @@ static_library("pe_image") {
|
2020-02-19 02:18:35 +01:00
|
|
|
"pe_image.cc",
|
|
|
|
"pe_image.h",
|
|
|
|
]
|
|
|
|
+
|
|
|
|
+ # Build as C++17 to avoid export of templates that should be inlined.
|
|
|
|
+ cflags_cc = [ "/std:c++17" ]
|
|
|
|
}
|