build: finish cross-platform release tooling
ci / tcc-check (push) Successful in 1m9s
ci / linux (aarch64, 0) (push) Failing after 58m44s
ci / linux (x86, 1) (push) Successful in 13m47s
ci / linux (x86_64, 1) (push) Failing after 1h0m2s
ci / windows (push) Successful in 10m46s

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 };