From 0baa51b851eeeafc7df2a1f9bec50213dacacf6f Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 4 Jul 2023 23:04:02 +0800 Subject: fix gch error for gcc --- xmake/core/project/target.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1