Enable LTO
This commit is contained in:
parent
23f78fe106
commit
70d1349c05
@ -108,6 +108,7 @@ cmake \
|
|||||||
"-DTd_DIR=$(realpath -m ../td_bin/lib/cmake/Td/)" \
|
"-DTd_DIR=$(realpath -m ../td_bin/lib/cmake/Td/)" \
|
||||||
"-DJAVA_SRC_DIR=$(realpath -m ../src/main/jni-java-src/)" \
|
"-DJAVA_SRC_DIR=$(realpath -m ../src/main/jni-java-src/)" \
|
||||||
"-DTDNATIVES_CPP_SRC_DIR:PATH=$(realpath -m ../src/main/jni-cpp-src/)" \
|
"-DTDNATIVES_CPP_SRC_DIR:PATH=$(realpath -m ../src/main/jni-cpp-src/)" \
|
||||||
|
"-DTD_ENABLE_LTO=ON" \
|
||||||
${CMAKE_EXTRA_ARGUMENTS_TDJNI} \
|
${CMAKE_EXTRA_ARGUMENTS_TDJNI} \
|
||||||
${CMAKE_EXTRA_ARGUMENTS} \
|
${CMAKE_EXTRA_ARGUMENTS} \
|
||||||
"$(realpath -m ../src/main/jni-cpp-src/)"
|
"$(realpath -m ../src/main/jni-cpp-src/)"
|
||||||
|
@ -76,6 +76,7 @@ cmake "-DCMAKE_BUILD_TYPE=${BUILD_TYPE}" \
|
|||||||
-DCMAKE_INSTALL_PREFIX:PATH="$INSTALL_PREFIX" \
|
-DCMAKE_INSTALL_PREFIX:PATH="$INSTALL_PREFIX" \
|
||||||
-DCMAKE_INSTALL_BINDIR:PATH="$INSTALL_BINDIR" \
|
-DCMAKE_INSTALL_BINDIR:PATH="$INSTALL_BINDIR" \
|
||||||
-DTD_ENABLE_JNI=ON \
|
-DTD_ENABLE_JNI=ON \
|
||||||
|
-DTD_ENABLE_LTO=ON \
|
||||||
${CMAKE_EXTRA_ARGUMENTS_TD} \
|
${CMAKE_EXTRA_ARGUMENTS_TD} \
|
||||||
${CMAKE_EXTRA_ARGUMENTS} \
|
${CMAKE_EXTRA_ARGUMENTS} \
|
||||||
../implementation
|
../implementation
|
||||||
|
@ -79,7 +79,7 @@ fi
|
|||||||
echo "Configuring CMake..."
|
echo "Configuring CMake..."
|
||||||
mkdir ./generated/td_tools/
|
mkdir ./generated/td_tools/
|
||||||
cd ./generated/td_tools/
|
cd ./generated/td_tools/
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DTD_ENABLE_JNI=ON ${CMAKE_EXTRA_ARGUMENTS} ../implementation/
|
cmake -DCMAKE_BUILD_TYPE=Release -DTD_ENABLE_JNI=ON -DTD_ENABLE_LTO=ON ${CMAKE_EXTRA_ARGUMENTS} ../implementation/
|
||||||
|
|
||||||
# Run cmake to generate common tools
|
# Run cmake to generate common tools
|
||||||
echo "Generating cross compilation tools..."
|
echo "Generating cross compilation tools..."
|
||||||
|
Loading…
Reference in New Issue
Block a user