We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f866a8d commit f107c28Copy full SHA for f107c28
packages/react-native/ReactAndroid/src/main/jni/CMakeLists.txt
@@ -8,6 +8,13 @@ set(CMAKE_VERBOSE_MAKEFILE on)
8
9
project(ReactAndroid)
10
11
+include(CheckIPOSupported)
12
+check_ipo_supported(RESULT IPO_SUPPORT)
13
+if (IPO_SUPPORT)
14
+ message(STATUS "LTO support is enabled")
15
+ set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
16
+endif()
17
+
18
include(${REACT_COMMON_DIR}/cmake-utils/react-native-flags.cmake)
19
20
# Convert input paths to CMake format (with forward slashes)
0 commit comments