aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-02-02 16:54:51 -0500
committerAdam Harrison <adamdharrison@gmail.com>2023-02-02 16:54:51 -0500
commitbf760cf15e9660abaf2ea2e55ff38bc51c8e8d94 (patch)
tree6e3b9c96bdb0a3278d26132a3becafb63e7bd94d /build.sh
parentb6507b457fcc4a2e1cdffa04768e5dd48e43be99 (diff)
downloadlite-xl-plugin-manager-bf760cf15e9660abaf2ea2e55ff38bc51c8e8d94.tar.gz
lite-xl-plugin-manager-bf760cf15e9660abaf2ea2e55ff38bc51c8e8d94.zip
Added in JSON progress bars.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 80fbf88..94e514e 100755
--- a/build.sh
+++ b/build.sh
@@ -47,5 +47,5 @@ fi
[[ $OSTYPE == 'msys'* || $CC == *'mingw'* ]] && LDFLAGS="$LDFLAGS -lbcrypt -lws2_32 -lz -lwinhttp -lole32 -lcrypt32 -lrpcrt4"
[[ $OSTYPE == *'darwin'* ]] && LDFLAGS="$LDFLAGS -liconv -framework Security -framework Foundation"
-[[ " $@" != *" -g"* && " $@" != *" -O"* ]] && CFLAGS="$CFLAGS -O3" && LDFLAGS="$LDFLAGS -s"
-$CC $CFLAGS $SRCS $@ -o $BIN $LDFLAGS
+[[ " $@" != *" -g"* && " $@" != *" -O"* ]] && CFLAGS="$CFLAGS -O3" && LDFLAGS="$LDFLAGS -s -flto"
+$CC $CFLAGS $SRCS $@ -o $BIN $LDFLAGS