diff options
| author | ruki <[email protected]> | 2023-07-04 23:04:02 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-07-04 23:04:02 +0800 |
| commit | 0baa51b851eeeafc7df2a1f9bec50213dacacf6f (patch) | |
| tree | 282ad05607455a67fc92abddc97aff061efd4bb2 | |
| parent | 6b5f9eca01dfa8cd654014ba537e59a8f2eceeb6 (diff) | |
fix gch error for gcc
| -rw-r--r-- | xmake/core/project/target.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index c5e92e499..3c8c14085 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -2116,7 +2116,7 @@ function _instance:pcoutputfile(langkind) -- @note gcc has not -include-pch option to set the pch file path -- pcoutputfile = self:objectfile(pcheaderfile) - pcoutputfile = path.join(path.directory(pcoutputfile), path.basename(pcoutputfile) .. "." .. sourcekind .. (is_gcc and ".gch" or ".pch")) + pcoutputfile = path.join(path.directory(pcoutputfile), sourcekind, path.basename(pcoutputfile) .. (is_gcc and ".gch" or ".pch")) self._PCOUTPUTFILES[langkind] = pcoutputfile return pcoutputfile end |
