diff options
| author | ruki <[email protected]> | 2022-08-11 00:53:18 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-08-11 00:53:18 +0800 |
| commit | ae1521c83b8d19b832b1fb1636ae2c22c299cac8 (patch) | |
| tree | ec3db9772f4bd9428f2fb91b166a1968e2120cd2 /xmake/core/project/target.lua | |
| parent | eb348d65c260d13a47bea41ee461fff95b9dfb60 (diff) | |
fix pcheader for msvc
Diffstat (limited to 'xmake/core/project/target.lua')
| -rw-r--r-- | xmake/core/project/target.lua | 6 |
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 |
