fix numeric dependencies (flutter/engine#25053)
* fix numeric dependencies * fix * fix format
This commit is contained in:
@@ -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" ]
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user