diff options
| author | ruki <[email protected]> | 2023-08-21 23:42:12 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-08-21 23:42:12 +0800 |
| commit | d528d56c990bf06f99dcff2412fb19d9b1730c4f (patch) | |
| tree | fdfa088e57da84c31e30c96c12522afe1c80acd4 /xmake/modules/core/tools/cl.lua | |
| parent | e73df8b4713c4b8c928c77d0baa4185be1db6517 (diff) | |
add force includes #4101
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
| -rw-r--r-- | xmake/modules/core/tools/cl.lua | 14 |
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 |
