diff options
| author | ruki <[email protected]> | 2022-05-15 21:35:52 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-05-15 21:35:52 +0800 |
| commit | e2e314e5f6082c026ca23547b5f96bf4ab5aabf1 (patch) | |
| tree | 5f8cdae84c09ee10e49d63dca2b23c22d8a2da36 | |
| parent | a7c090202ecfd4b458a611d2576a3537b287ea40 (diff) | |
improve cppfile for distcc
| -rw-r--r-- | xmake/modules/private/service/distcc_build/client_session.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/private/service/distcc_build/client_session.lua b/xmake/modules/private/service/distcc_build/client_session.lua index ee92d32ec..a5528ab9b 100644 --- a/xmake/modules/private/service/distcc_build/client_session.lua +++ b/xmake/modules/private/service/distcc_build/client_session.lua @@ -121,7 +121,7 @@ function client_session:_gcc_iorunv(program, argv, opt) assert(objectfile and sourcefile, "%s: iorunv(%s): invalid arguments!", self, program) -- do preprocess - local cppfile = objectfile:gsub("%.o$", ".p") + local cppfile = objectfile .. ".p" local cppfiledir = path.directory(cppfile) if not os.isdir(cppfiledir) then os.mkdir(cppfiledir) @@ -186,7 +186,7 @@ function client_session:_cl_iorunv(program, argv, opt) assert(objectfile and sourcefile, "%s: iorunv(%s): invalid arguments!", self, program) -- do preprocess - local cppfile = objectfile:gsub("%.obj$", ".i") + local cppfile = objectfile .. ".p" local cppfiledir = path.directory(cppfile) if not os.isdir(cppfiledir) then os.mkdir(cppfiledir) |
