aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorAdam <adamdharrison@gmail.com>2023-06-20 14:34:32 -0400
committerGitHub <noreply@github.com>2023-06-20 14:34:32 -0400
commitdcb46d8e39b673b11cd6b225103291fc03003343 (patch)
tree68326bd055d70ddb7ea900c30e255aa44bccf8af /build.sh
parent0109b96e682f6a50ab8d12931ff9f27dedb0e4d2 (diff)
parent6ab6705f8c3a958ae5de159d609b0c2ef5550dae (diff)
downloadlite-xl-plugin-manager-dcb46d8e39b673b11cd6b225103291fc03003343.tar.gz
lite-xl-plugin-manager-dcb46d8e39b673b11cd6b225103291fc03003343.zip
Merge pull request #29 from lite-xl/PR/remove-sysconfig
Removed system configuration search paths.
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 43343d6..6805532 100755
--- a/build.sh
+++ b/build.sh
@@ -39,7 +39,7 @@ fi
# Build the pre-packaged lua file into the executbale.
if [[ "$@" == *"-DLPM_STATIC"* ]]; then
[[ ! -e "lua.exe" ]] && gcc -Ilib/lua -o lua.exe lib/lua/onelua.c -lm
- ./lua.exe -e 'f = string.dump(assert(loadfile("src/lpm.lua"))) io.open("src/lpm.lua.c", "wb"):write("unsigned char lpm_luac[] = \"" .. f:gsub(".", function (c) return string.format("\\x%02X",string.byte(c)) end) .. "\";unsigned int lpm_luac_len = " .. #f .. ";")'
+ ./lua.exe -e 'io.open("src/lpm.lua.c", "wb"):write("unsigned char lpm_luac[] = \""..string.dump(loadfile("src/lpm.lua")):gsub(".",function(c) return string.format("\\x%02X",string.byte(c)) end).."\";unsigned int lpm_luac_len = sizeof(lpm_luac)-1;")'
fi
[[ $OSTYPE != 'msys'* && $CC != *'mingw'* && $CC != "emcc" ]] && CFLAGS="$CFLAGS -DLUA_USE_LINUX" && LDFLAGS="$LDFLAGS -ldl"