build: finish cross-platform release tooling

This commit is contained in:
WHC
2026-10-10 16:21:00 +08:00
parent 9bf7707912
commit 50abcf1a91
29 changed files with 973 additions and 230 deletions
+5 -2
View File
@@ -89,8 +89,11 @@ typedef struct {
const unsigned char *json;
size_t position;
} error;
/* cst-agent: per thread, parses run concurrently (sub-agents, MCP) */
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
/* cst-agent: per thread, parses run concurrently (sub-agents, MCP).
* tcc has no thread-local storage; cst-agent never reads cJSON_GetErrorPtr. */
#if defined(__TINYC__)
static error global_error = { NULL, 0 };
#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
static _Thread_local error global_error = { NULL, 0 };
#elif defined(__GNUC__)
static __thread error global_error = { NULL, 0 };