From 2f3e00ed98a3dc3dfc055974697db507e9ee288c Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Mon, 12 Feb 2018 11:02:14 +0100 Subject: [PATCH] Enable link-time optimization for release Because why not. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b049b925..d8cb7987 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,8 @@ run-debug: SCRCPY_SERVER_JAR=server/build/outputs/apk/debug/server-debug.apk $(APP_BUILD_DEBUG_DIR)/scrcpy $(ARGS) build-app: - [ -d "$(APP_BUILD_DIR)" ] || ( mkdir "$(APP_BUILD_DIR)" && meson app "$(APP_BUILD_DIR)" --buildtype release ) + [ -d "$(APP_BUILD_DIR)" ] || ( mkdir "$(APP_BUILD_DIR)" && \ + meson app "$(APP_BUILD_DIR)" --buildtype release -Db_lto ) ninja -C "$(APP_BUILD_DIR)" build-server: