diff options
| author | ruki <[email protected]> | 2026-03-07 22:05:55 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-03-07 22:05:55 +0800 |
| commit | cb4ac4367a20be40109185f942cbf82865351c6d (patch) | |
| tree | 649caae5e5841739f2b8b974415fa566404f9408 | |
| parent | 867fcf74184dfcff6b58f90f15b4b107a3054bca (diff) | |
update readme
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | README_zh.md | 1 | ||||
| -rw-r--r-- | xmake/toolchains/zigcc/xmake.lua | 4 |
3 files changed, 4 insertions, 2 deletions
@@ -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 |
