summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-03-09 23:25:38 +0800
committerruki <[email protected]>2022-03-09 23:25:38 +0800
commitfa2e4a9a5f21a8819beafb99a85652d83b7e5429 (patch)
tree8ae328914c4dd54012e0cf6cc013547acaa4caeb /xmake/modules/core/tools/cl.lua
parent4eb65435961776fbefcc11ed774b778532c2c8dd (diff)
improve path.directory
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
-rw-r--r--xmake/modules/core/tools/cl.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index b499542e3..2526536c4 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -409,8 +409,7 @@ end
function compile(self, sourcefile, objectfile, dependinfo, flags, opt)
-- ensure the object directory
- -- @note this path here has been normalized, we can quickly find it by the unique path separator prompt
- local objectdir = path.directory(objectfile, path.sep())
+ local objectdir = path.directory(objectfile)
if not os.isdir(objectdir) then
os.mkdir(objectdir)
end