File tree 3 files changed +10
-0
lines changed
.github/actions/build-android
packages/react-native/ReactAndroid
3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 19
19
uses : ./.github/actions/setup-node
20
20
- name : Install node dependencies
21
21
uses : ./.github/actions/yarn-install
22
+ - name : Install llvm-13-linker-tools
23
+ run : sudo apt update && sudo apt install llvm-13-linker-tools
22
24
- name : Set React Native Version
23
25
shell : bash
24
26
run : node ./scripts/releases/set-rn-artifacts-version.js --build-type ${{ inputs.release-type }}
Original file line number Diff line number Diff line change @@ -230,6 +230,7 @@ android {
230
230
arguments(
231
231
" --log-level=ERROR" ,
232
232
" -Wno-dev" ,
233
+ " -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=True" ,
233
234
" -DHERMES_IS_ANDROID=True" ,
234
235
" -DANDROID_STL=c++_shared" ,
235
236
" -DANDROID_PIE=True" ,
Original file line number Diff line number Diff line change @@ -8,6 +8,13 @@ set(CMAKE_VERBOSE_MAKEFILE on)
8
8
9
9
project (ReactAndroid)
10
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
+
11
18
include (${REACT_COMMON_DIR} /cmake-utils/react-native-flags .cmake)
12
19
13
20
# Convert input paths to CMake format (with forward slashes)
You can’t perform that action at this time.
0 commit comments