mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Enable INTERPROCEDURAL_OPTIMIZATION for React Native (#50529)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50529 This enables INTERPROCEDURAL_OPTIMIZATION for the CMake build of React Native. Changelog: [Android] [Changed] - Enable INTERPROCEDURAL_OPTIMIZATION for React Native Reviewed By: NickGerleman Differential Revision: D72574119 fbshipit-source-id: e414a61fee13e61f15044d93f5ad28f26aba4ed5
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f866a8d800
commit
f107c28d2f
@@ -8,6 +8,13 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
|
||||
project(ReactAndroid)
|
||||
|
||||
include(CheckIPOSupported)
|
||||
check_ipo_supported(RESULT IPO_SUPPORT)
|
||||
if (IPO_SUPPORT)
|
||||
message(STATUS "LTO support is enabled")
|
||||
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
|
||||
endif()
|
||||
|
||||
include(${REACT_COMMON_DIR}/cmake-utils/react-native-flags.cmake)
|
||||
|
||||
# Convert input paths to CMake format (with forward slashes)
|
||||
|
||||
Reference in New Issue
Block a user