2019-10-01 13:30:07 +02:00
|
|
|
diff --git base/BUILD.gn base/BUILD.gn
|
2021-03-04 23:36:57 +01:00
|
|
|
index 70911a215498..52aea5cc2e70 100644
|
2019-10-01 13:30:07 +02:00
|
|
|
--- base/BUILD.gn
|
|
|
|
+++ base/BUILD.gn
|
2021-01-28 00:13:12 +01:00
|
|
|
@@ -34,6 +34,7 @@ import("//build/config/ui.gni")
|
2019-10-01 13:30:07 +02:00
|
|
|
import("//build/nocompile.gni")
|
|
|
|
import("//build/timestamp.gni")
|
2020-07-08 19:23:29 +02:00
|
|
|
import("//build_overrides/build.gni")
|
2019-10-01 13:30:07 +02:00
|
|
|
+import("//cef/libcef/features/features.gni")
|
|
|
|
import("//testing/libfuzzer/fuzzer_test.gni")
|
|
|
|
import("//testing/test.gni")
|
2019-11-12 17:11:44 +01:00
|
|
|
import("//third_party/icu/config.gni")
|
2021-03-04 23:36:57 +01:00
|
|
|
@@ -1731,7 +1732,11 @@ component("base") {
|
2019-10-01 13:30:07 +02:00
|
|
|
"hash/md5_constexpr_internal.h",
|
|
|
|
"hash/sha1.h",
|
|
|
|
]
|
|
|
|
- if (is_nacl) {
|
|
|
|
+ deps += [ "//cef/libcef/features" ]
|
|
|
|
+ if (enable_cef) {
|
|
|
|
+ configs += [ "//cef/libcef/features:config" ]
|
|
|
|
+ }
|
|
|
|
+ if (is_nacl || is_cef_sandbox_build) {
|
|
|
|
sources += [
|
|
|
|
"hash/md5_nacl.cc",
|
|
|
|
"hash/md5_nacl.h",
|
2021-03-04 23:36:57 +01:00
|
|
|
@@ -1938,6 +1943,12 @@ component("base") {
|
2020-10-08 21:54:42 +02:00
|
|
|
defines += [ "COM_INIT_CHECK_HOOK_DISABLED" ]
|
|
|
|
}
|
|
|
|
|
|
|
|
+ if (!use_custom_libcxx) {
|
|
|
|
+ # Enable the VS 2015 Update 2 fix when building with the MSVC standard
|
|
|
|
+ # library.
|
|
|
|
+ defines += [ "_ENABLE_ATOMIC_ALIGNMENT_FIX" ]
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
|
|
|
|
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
|
|
|
|
|
2019-10-01 13:30:07 +02:00
|
|
|
diff --git base/hash/md5.h base/hash/md5.h
|
|
|
|
index 8a49f08dcb04..2f03d7a6d1b3 100644
|
|
|
|
--- base/hash/md5.h
|
|
|
|
+++ base/hash/md5.h
|
|
|
|
@@ -10,8 +10,9 @@
|
|
|
|
#include "base/base_export.h"
|
|
|
|
#include "base/strings/string_piece.h"
|
|
|
|
#include "build/build_config.h"
|
|
|
|
+#include "cef/libcef/features/features.h"
|
|
|
|
|
|
|
|
-#if defined(OS_NACL)
|
|
|
|
+#if defined(OS_NACL) || BUILDFLAG(IS_CEF_SANDBOX_BUILD)
|
|
|
|
#include "base/hash/md5_nacl.h"
|
|
|
|
#else
|
|
|
|
#include "base/hash/md5_boringssl.h"
|