mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Enable INTERPROCEDURAL_OPTIMIZATION for libappmodules.so in OSS (#50580)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50580 This follow ups to us enabling INTERPROCEDURAL_OPTIMIZATION to libreactnative.so and enables INTERPROCEDURAL_OPTIMIZATION for the app module as well. Changelog: [Android] [Changed] - Enable INTERPROCEDURAL_OPTIMIZATION for libappmodules.so in OSS Reviewed By: rshest Differential Revision: D72696658 fbshipit-source-id: ec07c7df9a639b5c3df8923ec384db90a78463e9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
423d4fd7dc
commit
2da062f9d1
@@ -31,6 +31,13 @@ if(CCACHE_FOUND)
|
||||
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
|
||||
endif(CCACHE_FOUND)
|
||||
|
||||
# If the user toolchain supports IPO, we enable it for the app build
|
||||
include(CheckIPOSupported)
|
||||
check_ipo_supported(RESULT IPO_SUPPORT)
|
||||
if (IPO_SUPPORT)
|
||||
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
|
||||
endif()
|
||||
|
||||
set(BUILD_DIR ${PROJECT_BUILD_DIR})
|
||||
file(TO_CMAKE_PATH "${BUILD_DIR}" BUILD_DIR)
|
||||
file(TO_CMAKE_PATH "${REACT_ANDROID_DIR}" REACT_ANDROID_DIR)
|
||||
|
||||
Reference in New Issue
Block a user