summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/core/tools')
-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 =