summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2024-01-31 15:30:54 +0100
committerArthur LAURENT <[email protected]>2024-01-31 15:30:54 +0100
commit7dbdcf99b58ff044578298d2a73958fa695c70e4 (patch)
tree96491b04e54727387296b50253e2757035978df8 /xmake/rules/c++/modules/modules_support
parent9b378dde3163609b41846c497c72cf5fed1cc167 (diff)
remove useless path.translate
Diffstat (limited to 'xmake/rules/c++/modules/modules_support')
-rw-r--r--xmake/rules/c++/modules/modules_support/gcc/dependency_scanner.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/gcc/dependency_scanner.lua b/xmake/rules/c++/modules/modules_support/gcc/dependency_scanner.lua
index a939cb0a0..982eae960 100644
--- a/xmake/rules/c++/modules/modules_support/gcc/dependency_scanner.lua
+++ b/xmake/rules/c++/modules/modules_support/gcc/dependency_scanner.lua
@@ -49,7 +49,7 @@ function generate_dependencies(target, sourcebatch, opt)
local dfile = path.translate(path.join(outputdir, path.filename(sourcefile) .. ".d"))
local compflags = compinst:compflags({sourcefile = sourcefile, target = target})
local flags = table.join(compflags or {}, baselineflags, {sourcefile, "-MT", jsonfile, "-MD", "-MF", dfile, depsformatflag, depsfileflag .. jsonfile, depstargetflag .. target:objectfile(sourcefile), "-o", ifile})
- os.vrunv(path.translate(compinst:program()), flags)
+ os.vrunv(compinst:program(), flags)
os.rm(ifile)
os.rm(dfile)
else