mirror of
https://github.com/status-im/react-native.git
synced 2025-02-24 15:18:10 +00:00
Summary: Use a folly LRU implementation to cache results of ParagraphShadowNode::measure, which Yoga asks for repeatedly. Should have a substantial speed improvement on Android and iOS, or at least that's the dream. Reviewed By: mdvacca Differential Revision: D13795808 fbshipit-source-id: 5716af0fe0517a72716e48113c8125bb788735d7
28 lines
658 B
Python
28 lines
658 B
Python
load("@fbsource//tools/build_defs:glob_defs.bzl", "subdir_glob")
|
|
load("//tools/build_defs/oss:rn_defs.bzl", "get_apple_compiler_flags", "rn_xplat_cxx_library")
|
|
|
|
CXX_LIBRARY_COMPILER_FLAGS = [
|
|
"-std=c++14",
|
|
"-Wall",
|
|
]
|
|
|
|
rn_xplat_cxx_library(
|
|
name = "utils",
|
|
header_namespace = "",
|
|
exported_headers = subdir_glob(
|
|
[
|
|
("", "FloatComparison.h"),
|
|
],
|
|
prefix = "react/utils",
|
|
),
|
|
compiler_flags = CXX_LIBRARY_COMPILER_FLAGS + [
|
|
"-fexceptions",
|
|
"-frtti",
|
|
],
|
|
fbobjc_compiler_flags = get_apple_compiler_flags(),
|
|
force_static = True,
|
|
visibility = [
|
|
"PUBLIC",
|
|
],
|
|
)
|