From bec4169441e5cd07fc14e886a1759b1f879ca06c Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 28 Mar 2026 00:48:45 +0800 Subject: add c interop support for zig --- xmake/modules/core/tools/zig.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'xmake/modules/core/tools/zig.lua') diff --git a/xmake/modules/core/tools/zig.lua b/xmake/modules/core/tools/zig.lua index b45ad3177..a279d5a5a 100644 --- a/xmake/modules/core/tools/zig.lua +++ b/xmake/modules/core/tools/zig.lua @@ -48,6 +48,16 @@ function nf_define(self, macro) return {"-D" .. macro} end +-- make the includedir flag (for @cImport) +function nf_includedir(self, dir) + return {"-I", dir} +end + +-- make the sysincludedir flag (for @cImport) +function nf_sysincludedir(self, dir) + return nf_includedir(self, dir) +end + -- make the optimize flag function nf_optimize(self, level) local maps = -- cgit v1.3.1