diff options
author | Rohan Vashisht <81112205+RohanVashisht1234@users.noreply.github.com> | 2024-04-17 20:12:36 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-17 10:42:36 -0400 |
commit | 0dc7f8a4b5eada9b14e9eeac423730d0afe4c562 (patch) | |
tree | d252796621571832672d1ae2e2e9677651961a1e | |
parent | 6047bb22dedd847d61adb7eceb37912afd8126f0 (diff) | |
download | lite-xl-plugin-manager-0dc7f8a4b5eada9b14e9eeac423730d0afe4c562.tar.gz lite-xl-plugin-manager-0dc7f8a4b5eada9b14e9eeac423730d0afe4c562.zip |
Gcc as $CC (#108)
* Update build.sh
* Update build.sh
* Update build.sh
-rwxr-xr-x | build.sh | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,6 +1,7 @@ #!/usr/bin/env bash : ${CC=gcc} +: ${HOSTCC=$CC} : ${AR=ar} : ${MAKE=make} : ${BIN=lpm} @@ -39,7 +40,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 || exit -1; } + [[ ! -e "lua.exe" ]] && { $HOSTCC -Ilib/lua -o lua.exe lib/lua/onelua.c -lm || exit -1; } ./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 |