summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2026-03-07 22:05:55 +0800
committerruki <[email protected]>2026-03-07 22:05:55 +0800
commitcb4ac4367a20be40109185f942cbf82865351c6d (patch)
tree649caae5e5841739f2b8b974415fa566404f9408
parent867fcf74184dfcff6b58f90f15b4b107a3054bca (diff)
update readme
-rw-r--r--README.md1
-rw-r--r--README_zh.md1
-rw-r--r--xmake/toolchains/zigcc/xmake.lua4
3 files changed, 4 insertions, 2 deletions
diff --git a/README.md b/README.md
index e1ee7f516..2c81ceb6d 100644
--- a/README.md
+++ b/README.md
@@ -207,6 +207,7 @@ gdc The GNU D Compiler (GDC)
gfortran GNU Fortran Programming Language Compiler
flang LLVM Fortran Compiler
zig Zig Programming Language Compiler
+zigcc Use zig cc/c++ as C/C++ Compiler
sdcc Small Device C Compiler
cuda CUDA Toolkit (nvcc, nvc, nvc++, nvfortran)
ndk Android NDK
diff --git a/README_zh.md b/README_zh.md
index 836008860..c36e2ac3b 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -268,6 +268,7 @@ gdc The GNU D Compiler (GDC)
gfortran GNU Fortran Programming Language Compiler
flang LLVM Fortran Compiler
zig Zig Programming Language Compiler
+zigcc Use zig cc/c++ as C/C++ Compiler
sdcc Small Device C Compiler
cuda CUDA Toolkit (nvcc, nvc, nvc++, nvfortran)
ndk Android NDK
diff --git a/xmake/toolchains/zigcc/xmake.lua b/xmake/toolchains/zigcc/xmake.lua
index 59b949733..aabf3640e 100644
--- a/xmake/toolchains/zigcc/xmake.lua
+++ b/xmake/toolchains/zigcc/xmake.lua
@@ -22,13 +22,13 @@
toolchain("zigcc")
set_kind("standalone")
set_homepage("https://ziglang.org/")
- set_description("Zig CC C/C++ Compiler")
+ set_description("Use zig cc/c++ as C/C++ Compiler")
on_check(function (toolchain)
import("lib.detect.find_tool")
-- @see https://github.com/xmake-io/xmake/issues/5610
- function _setup_zigcc_wrapper(zig)
+ local function _setup_zigcc_wrapper(zig)
local script_suffix = is_host("windows") and ".cmd" or ""
for _, tool in ipairs({"cc", "c++", "ar", "ranlib", "lib", "ld.lld", "lld-link", "wasm-ld", "objcopy", "dlltool", "rc"}) do
local wrapper_path = path.join(os.tmpdir(), "zigcc", tool) .. script_suffix