From 5594485becb36561b8162a456191e8b9deba01d3 Mon Sep 17 00:00:00 2001 From: kr328 Date: Tue, 25 May 2021 19:23:19 +0800 Subject: [PATCH] Improve: enable -O3 for libbridge.so --- core/src/main/cpp/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/cpp/CMakeLists.txt b/core/src/main/cpp/CMakeLists.txt index 49b2b0a1..f3fb5239 100644 --- a/core/src/main/cpp/CMakeLists.txt +++ b/core/src/main/cpp/CMakeLists.txt @@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 3.0) project(clash-bridge C) set(CMAKE_POSITION_INDEPENDENT_CODE on) +set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O3") set(GO_OUTPUT_BASE ${GO_OUTPUT}/${FLAVOR_NAME})