summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
-rw-r--r--xmake/modules/core/tools/cl.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index b043370d1..44e696f4b 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -281,6 +281,20 @@ function nf_includedir(self, dir)
return {"-I" .. path.translate(dir)}
end
+-- make the force c include flag
+function nf_cinclude(self, headerfile)
+ if self:kind() == "cc" then
+ return {"-FI", headerfile}
+ end
+end
+
+-- make the force c++ include flag
+function nf_cxxinclude(self, headerfile)
+ if self:kind() == "cxx" then
+ return {"-FI", headerfile}
+ end
+end
+
-- make the sysincludedir flag
function nf_sysincludedir(self, dir)
local has_external_includedir = _g._HAS_EXTERNAL_INCLUDEDIR