diff options
| author | tanaka takashi <isazaka@gmail.com> | 2026-06-30 19:03:25 +0900 |
|---|---|---|
| committer | tanaka takashi <isazaka@gmail.com> | 2026-06-30 19:03:25 +0900 |
| commit | 05c8e0a31a0d4192c590e833b24393208e1c751f (patch) | |
| tree | f7c2c82c9327abde67bf3acf1d0258573b3bc6c2 /third_party/mcpc/mk/ccdefs-linux.mk | |
| parent | 4bc721c3bf7589b519c5730d093f704ce56e3f09 (diff) | |
fix: MCPCをvendored fork化しMCP準拠と接続安定性を改善
- Git submoduleを廃止してMCPCを直接管理
- Windowsで254リクエスト付近に発生する切断を修正
- JSON-RPC 2.0エラー応答を標準化
- tool schemaとruntimeの必須・任意引数を一致
- 1000回連続呼び出しの回帰テストを追加
Diffstat (limited to 'third_party/mcpc/mk/ccdefs-linux.mk')
| -rw-r--r-- | third_party/mcpc/mk/ccdefs-linux.mk | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/third_party/mcpc/mk/ccdefs-linux.mk b/third_party/mcpc/mk/ccdefs-linux.mk new file mode 100644 index 0000000..b59540a --- /dev/null +++ b/third_party/mcpc/mk/ccdefs-linux.mk @@ -0,0 +1,79 @@ +ifneq (,$(and $(isnot_done_ccdefs),$(is_linux))) + is_unix = xxx + is_unixar = xxx + CFLAGS += -Dis_unix + + cc_ver = $(shell $(CC) --version) + ifneq (,$(findstring Free Software Foundation,$(cc_ver))) + found_gcc = xxx + endif + ifneq (,$(findstring clang,$(cc_ver))) + found_clang = xxx + endif + + ifneq (,$(found_gcc)) + is_gcc = xxx + is_gcclike = xxx + gcc_ver = $(shell $(CC) --version) + is_gcc10 = $(findstring 10.,$(gcc_ver)) + is_gcc12 = $(findstring 12.,$(gcc_ver)) + is_gcc13 = $(findstring 13.,$(gcc_ver)) + is_gcc14 = $(findstring 14.,$(gcc_ver)) + else ifneq (,$(found_clang)) + is_clang = xxx + is_gcclike = xxx + clang_ver = $(shell $(CC) --version) + is_clang18 = $(findstring 18.,$(clang_ver)) + is_clang19 = $(findstring 19.,$(clang_ver)) + endif + + ldd_ver = $(shell ldd --version) + is_glibc231 = $(and $(findstring Free Software Foundation,$(ldd_ver)),$(findstring 2.31,$(ldd_ver))) + is_glibc236 = $(and $(findstring Free Software Foundation,$(ldd_ver)),$(findstring 2.36,$(ldd_ver))) + is_glibc240 = $(and $(findstring Free Software Foundation,$(ldd_ver)),$(findstring 2.40,$(ldd_ver))) + is_cygwin = $(and $(findstring cygwin,$(ldd_ver))) + + ifeq (1,2) + else ifneq (,$(and $(is_gcc10),$(is_glibc231))) + # deb11 + CFLAGS += -std=c17 + CFLAGS += -DMCPC_C23PTCH_KW1 + CFLAGS += -DMCPC_C23PTCH_CKD1 + CFLAGS += -DMCPC_C23PTCH_UCHAR1 + CFLAGS += -DMCPC_C23GIVUP_FIXENUM + is_manual_pthread = xxx + isnot_done_ccdefs = + else ifneq (,$(and $(is_gcc12),$(is_glibc236))) + # deb12 + CFLAGS += -std=c17 + CFLAGS += -DMCPC_C23PTCH_KW1 + CFLAGS += -DMCPC_C23PTCH_CKD1 + CFLAGS += -DMCPC_C23PTCH_UCHAR1 + CFLAGS += -DMCPC_C23GIVUP_FIXENUM + isnot_done_ccdefs = + else ifneq (,$(and $(is_gcc14),$(is_cygwin))) + # fc41 + CFLAGS += -std=c23 + CFLAGS += -DMCPC_C23PTCH_UCHAR1 + isnot_done_ccdefs = + else ifneq (,$(and $(is_gcc14),$(is_mingw))) + # fc41 + CFLAGS += -std=c233 + isnot_done_ccdefs = + else ifneq (,$(and $(is_gcc14),$(is_glibc240))) + # fc41 + CFLAGS += -std=c23 + isnot_done_ccdefs = + else ifneq (,$(and $(is_clang18),$(is_glibc240))) + # fc41 + CFLAGS += -std=c23 + isnot_done_ccdefs = + else ifneq (,$(and $(is_clang19),$(is_glibc240))) + # fc41 + CFLAGS += -std=c23 + isnot_done_ccdefs = + endif + + + +endif |
