From 2e74bd03273420ffbbc733b93b390c125545d236 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sat, 7 Sep 2024 10:27:37 +0800 Subject: [PATCH] updated lite, added compile flag fix --- Makefile | 11 +++++++++-- klite.embd | 50 ++++++++++++++++++++++++++++++++++++++++---------- 2 files changed, 49 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 646597100..9c28c3cc6 100644 --- a/Makefile +++ b/Makefile @@ -48,12 +48,19 @@ ifdef KCPP_DEBUG CFLAGS = -g -O0 CXXFLAGS = -g -O0 endif -CFLAGS += -I. -Iggml/include -Iggml/src -Iinclude -Isrc -I./include -I./include/CL -I./otherarch -I./otherarch/tools -I./otherarch/sdcpp -I./otherarch/sdcpp/thirdparty -I./include/vulkan -O3 -fno-finite-math-only -std=c11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE -CXXFLAGS += -I. -Iggml/include -Iggml/src -Iinclude -Isrc -I./common -I./include -I./include/CL -I./otherarch -I./otherarch/tools -I./otherarch/sdcpp -I./otherarch/sdcpp/thirdparty -I./include/vulkan -O3 -fno-finite-math-only -std=c++11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE +CFLAGS += -I. -Iggml/include -Iggml/src -Iinclude -Isrc -I./include -I./include/CL -I./otherarch -I./otherarch/tools -I./otherarch/sdcpp -I./otherarch/sdcpp/thirdparty -I./include/vulkan -O3 -fno-finite-math-only -std=c11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE +CXXFLAGS += -I. -Iggml/include -Iggml/src -Iinclude -Isrc -I./common -I./include -I./include/CL -I./otherarch -I./otherarch/tools -I./otherarch/sdcpp -I./otherarch/sdcpp/thirdparty -I./include/vulkan -O3 -fno-finite-math-only -std=c++11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE ifndef KCPP_DEBUG CFLAGS += -DNDEBUG -s CXXFLAGS += -DNDEBUG -s endif +ifdef LLAMA_NO_LLAMAFILE +GGML_NO_LLAMAFILE := 1 +endif +ifndef GGML_NO_LLAMAFILE + CFLAGS += -DGGML_USE_LLAMAFILE + CXXFLAGS += -DGGML_USE_LLAMAFILE +endif #lets try enabling everything CFLAGS += -pthread -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-variable diff --git a/klite.embd b/klite.embd index 09ee32f3e..3794dabf6 100644 --- a/klite.embd +++ b/klite.embd @@ -6251,7 +6251,7 @@ Current version indicated by LITEVER below. let ll = Math.min(pat.length,rep.length) for(let i=0;i0) + { + for(let i=0;i0 && codeblockcount%2!=0 ) @@ -16199,6 +16223,7 @@ Current version indicated by LITEVER below. Pattern ?The regex pattern to match against any incoming text. Leave blank to disable. Replacement ?The string to replace matches with. Capture groups are allowed (e.g. $1). To remove all matches, leave this blank. Both Ways ?If enabled, regex applies for both inputs and outputs, otherwise output only. + Display Only ?If enabled, regex replacements only affect displayed text without modifying context. `; let regextable = document.getElementById("regex_replace_table"); @@ -16209,6 +16234,7 @@ Current version indicated by LITEVER below. + `; } @@ -16220,18 +16246,21 @@ Current version indicated by LITEVER below. let a1 = document.getElementById("regexreplace_pattern"+i); let a2 = document.getElementById("regexreplace_replacement"+i); let a3 = document.getElementById("regexreplace_bothways"+i); - if(a1 && a2 && a3) + let a4 = document.getElementById("regexreplace_displayonly"+i); + if(a1 && a2 && a3 && a4) { if(i
+ Classic UI
+ Aesthetic UI
+ Corpo UI
-

+

+

Alternatively, you can Load A Savefile or Quick Start Scenario

- +