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 29aad7a commit c0c3a1bCopy full SHA for c0c3a1b
android/CMakeLists.txt
@@ -13,6 +13,7 @@
13
# limitations under the License.
14
15
cmake_minimum_required(VERSION 3.6.0)
16
+project("webcrypto" LANGUAGES C)
17
18
enable_language(ASM)
19
@@ -35,6 +36,10 @@ include(
35
36
# https://boringssl.googlesource.com/boringssl/+/HEAD/BUILDING.md#binary-size
37
add_definitions(-DOPENSSL_SMALL)
38
39
+# Enable link time optimization
40
+set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} -flto")
41
+set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -flto")
42
+
43
# Android ABIs, see also:
44
# https://developer.android.com/ndk/guides/abis
45
if(ANDROID_ABI STREQUAL "armeabi-v7a")
0 commit comments