Enable link-time optimization for release

Because why not.
This commit is contained in:
Romain Vimont 2018-02-12 11:02:14 +01:00
parent 000c70a644
commit 2f3e00ed98
1 changed files with 2 additions and 1 deletions

View File

@ -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: