diff options
| author | ruki <[email protected]> | 2022-06-25 00:54:37 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-06-25 00:54:37 +0800 |
| commit | 06335e814b830acc412ba3787aedc24ccfb22873 (patch) | |
| tree | dc9cd3f51a22d27cac92f1073658f8c20a7eb4d5 /xmake/modules/core/tools/cl.lua | |
| parent | 98baab9ef829470209fb31d87d04a45c7e302f26 (diff) | |
fix preprocess for ccache
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
| -rw-r--r-- | xmake/modules/core/tools/cl.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index 703250c8b..a11211f6a 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -478,7 +478,7 @@ function _preprocess(program, argv, opt) end -- do preprocess - local cppfile = path.join(path.directory(objectfile), path.basename(objectfile) .. path.extension(sourcefile)) + local cppfile = path.join(path.directory(objectfile), path.filename(objectfile) .. path.extension(sourcefile)) local cppfiledir = path.directory(cppfile) if not os.isdir(cppfiledir) then os.mkdir(cppfiledir) |
