aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorAdam <adamdharrison@gmail.com>2022-09-18 18:42:30 -0400
committerAdam <adamdharrison@gmail.com>2022-09-18 18:42:30 -0400
commit3c17efb0fbc6d26d3a59790ba26fab6756688d41 (patch)
treee1fad7fb9563e09267cd3e6bbe41499a4121c640 /build.sh
parenta1feb9696cbbffc3ba061dcffc5a0ada9891fb22 (diff)
downloadlite-xl-plugin-manager-3c17efb0fbc6d26d3a59790ba26fab6756688d41.tar.gz
lite-xl-plugin-manager-3c17efb0fbc6d26d3a59790ba26fab6756688d41.zip
Fixed segfault.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 004bbc7..706f2ec 100755
--- a/build.sh
+++ b/build.sh
@@ -37,5 +37,5 @@ xxd -i lpm.lua > lpm.lua.c
[[ $OSTYPE != 'msys'* && $CC != *'mingw'* && $CC != "emcc" ]] && LDFLAGS=" $LDFLAGS -ldl -pthread"
[[ $OSTYPE == 'msys'* || $CC == *'mingw'* ]] && LDFLAGS="$LDFLAGS -lws2_32 -lz -lwinhttp -lole32 -lcrypt32 -lrpcrt4"
-[[ "$@" != *" -g "* || "$@" != *" -O"* ]] && CFLAGS="$CFLAGS -O3" && LDFLAGS="$LDFLAGS -s"
+[[ " $@" != *" -g"* && " $@" != *" -O"* ]] && CFLAGS="$CFLAGS -O3" && LDFLAGS="$LDFLAGS -s"
$CC $CFLAGS $SRCS $@ -o $BIN $LDFLAGS