summaryrefslogtreecommitdiff
path: root/xmake/core/project/target.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-08-11 00:53:18 +0800
committerruki <[email protected]>2022-08-11 00:53:18 +0800
commitae1521c83b8d19b832b1fb1636ae2c22c299cac8 (patch)
treeec3db9772f4bd9428f2fb91b166a1968e2120cd2 /xmake/core/project/target.lua
parenteb348d65c260d13a47bea41ee461fff95b9dfb60 (diff)
fix pcheader for msvc
Diffstat (limited to 'xmake/core/project/target.lua')
-rw-r--r--xmake/core/project/target.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua
index b00cbe15a..4397fa701 100644
--- a/xmake/core/project/target.lua
+++ b/xmake/core/project/target.lua
@@ -1918,6 +1918,12 @@ function _instance:pcheaderfile(langkind)
return pcheaderfile
end
+-- set the precompiled header file
+function _instance:pcheaderfile_set(langkind, headerfile)
+ self:set("p" .. langkind .. "header", headerfile)
+ self._PCOUTPUTFILES = nil
+end
+
-- get the output of precompiled header file (xxx.h.pch)
--
-- @param langkind c/cxx