fix numeric dependencies (flutter/engine#25053)

* fix numeric dependencies

* fix

* fix format
This commit is contained in:
chunhtai
2021-03-18 10:22:35 -07:00
committed by GitHub
parent 905275f760
commit 17e51505e7
2 changed files with 6 additions and 1 deletions

View File

@@ -8,6 +8,8 @@
# dependencies or depending on internal implementation details.
source_set("numerics") {
visibility = [ "//flutter/third_party/accessibility/*" ]
include_dirs = [ "//flutter/third_party/accessibility" ]
sources = [
"checked_math_impl.h",
"clamped_math_impl.h",
@@ -17,6 +19,7 @@ source_set("numerics") {
"safe_math_clang_gcc_impl.h",
"safe_math_shared_impl.h",
]
public = [
"checked_math.h",
"clamped_math.h",
@@ -25,4 +28,6 @@ source_set("numerics") {
"safe_conversions.h",
"safe_math.h",
]
deps = [ "//flutter/third_party/accessibility/ax_build" ]
}

View File

@@ -15,8 +15,8 @@
#include <limits>
#include <type_traits>
#include "ax_build/build_config.h"
#include "base/numerics/safe_conversions.h"
#include "build/build_config.h"
#if defined(OS_ASMJS)
// Optimized safe math instructions are incompatible with asmjs.