diff options
| author | ruki <[email protected]> | 2017-09-24 22:30:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-09-24 22:30:33 +0800 |
| commit | 9cab22952325ed6b794750965d7234b329c6c0ea (patch) | |
| tree | 876767347ba3a1ec6a532936fb2505cc3803daf1 | |
| parent | efd1de3a01ce6126069427fbcd8baa9fb93d8e8a (diff) | |
fix pch header for msvc
| -rw-r--r-- | xmake/modules/core/tools/cl.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index 24dd268a2..81da0f528 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -236,7 +236,7 @@ function nf_pcheader(self, pcheaderfile, target) end -- make flag - return "-Yu" .. path.filename(pcheaderfile) .. " -Fp" .. target:pcoutputfile("c") + return "-Yu" .. path.filename(pcheaderfile) .. " -FI" .. path.filename(pcheaderfile) .. " -Fp" .. target:pcoutputfile("c") end end @@ -253,7 +253,7 @@ function nf_pcxxheader(self, pcheaderfile, target) end -- make flag - return "-Yu" .. path.filename(pcheaderfile) .. " -Fp" .. target:pcoutputfile("cxx") + return "-Yu" .. path.filename(pcheaderfile) .. " -FI" .. path.filename(pcheaderfile) .. " -Fp" .. target:pcoutputfile("cxx") end end @@ -270,7 +270,7 @@ function _include_note(self, line) _g.notes = _g.notes or { "Note: including file: " - , "\215\162\210\226\58\32\176\252\186\172\206\196\188\254\58\32" -- zh-cn: "注意: 包含文件: " + , "\215\162\210\226: \176\252\186\172\206\196\188\254: " -- zh-cn: "注意: 包含文件: " } -- contain notes? |
