summaryrefslogtreecommitdiff
path: root/xmake/modules/core
diff options
context:
space:
mode:
authorruki <[email protected]>2026-03-28 00:48:45 +0800
committerruki <[email protected]>2026-03-28 00:48:45 +0800
commitbec4169441e5cd07fc14e886a1759b1f879ca06c (patch)
treeda914fffe17f12079e69dbb7e28a94e67c7ed56e /xmake/modules/core
parente7f5e0fc203ebb4adb26365a7e1e4fe9e82e1be7 (diff)
add c interop support for zigzig
Diffstat (limited to 'xmake/modules/core')
-rw-r--r--xmake/modules/core/tools/zig.lua10
1 files changed, 10 insertions, 0 deletions
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 =