release build, fix process kill, baked in font, fix goto on build

This commit is contained in:
2025-08-17 19:05:37 +02:00
parent 1276c565da
commit b0f314c9e3
8 changed files with 2989 additions and 252 deletions

View File

@@ -3,6 +3,12 @@
mkdir build
cd build
if [ "$1" = "release" ]; then
profile_flags="-DDEBUG_BUILD=0 -O2"
else
profile_flags="-DDEBUG_BUILD=1"
fi
if [ ! -f "lbaselib.o" ]; then
clang -g -I../src/external/lua/src -I../src/external/glad \
../src/external/lua/src/lbaselib.c \
@@ -45,7 +51,7 @@ cp ../data/*.ttf .
clang ../src/text_editor/text_editor.cpp ../src/basic/unix.cpp \
-o te_linux.exe \
-nostdlib++ -fno-exceptions -fdiagnostics-absolute-paths -g \
-DDEBUG_BUILD=1 \
$profile_flags \
-Wno-writable-strings \
-I../src/external/SDL/include \
-I../src/external/lua/src \
@@ -86,3 +92,12 @@ clang ../src/text_editor/text_editor.cpp ../src/basic/unix.cpp \
ltm.o \
lvm.o \
glad.o \
if [ "$1" = "release" ]; then
cp te_linux.exe ~/bin/te
echo written ~/bin/te
else
cp te_linux.exe ~/bin/te_debug
echo written ~/bin/te_debug
fi