mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-12 09:37:37 +01:00
294eb75355
This works around a bug in the Visual C++ standard library where the std::is_integral templates are exported instead of inlined when building with C++14. See also https://bugs.llvm.org/show_bug.cgi?id=42027.
29 lines
847 B
Diff
29 lines
847 B
Diff
diff --git base/third_party/double_conversion/BUILD.gn base/third_party/double_conversion/BUILD.gn
|
|
index 0083efdcd9c8..6f647c31e28a 100644
|
|
--- 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") {
|
|
diff --git base/win/BUILD.gn base/win/BUILD.gn
|
|
index 33a38267a658..0d54f224d31c 100644
|
|
--- base/win/BUILD.gn
|
|
+++ base/win/BUILD.gn
|
|
@@ -31,4 +31,7 @@ static_library("pe_image") {
|
|
"pe_image.cc",
|
|
"pe_image.h",
|
|
]
|
|
+
|
|
+ # Build as C++17 to avoid export of templates that should be inlined.
|
|
+ cflags_cc = [ "/std:c++17" ]
|
|
}
|