Skip to content

Commit 96fa480

Browse files
authored
Merge pull request ggml-org#6 from anon998/fix-multibyte
Buffer incomplete multibyte characters + other stuff.
2 parents 9f2424a + 3edaf6b commit 96fa480

File tree

2 files changed

+225
-204
lines changed

2 files changed

+225
-204
lines changed

examples/server/CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ set(TARGET server)
22
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
33
add_executable(${TARGET} server.cpp json.hpp httplib.h)
44
target_compile_definitions(${TARGET} PRIVATE
5+
# single thread
6+
CPPHTTPLIB_THREAD_POOL_COUNT=1
7+
# crash the server in the debug mode, otherwise send http 500 error
58
$<$<CONFIG:Debug>:
69
CPPHTTPLIB_NO_EXCEPTIONS=1
710
>

0 commit comments

Comments
 (0)