diff options
| author | ruki <[email protected]> | 2020-03-18 23:05:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-03-18 12:33:21 +0800 |
| commit | d81c6dee77d69e8116a5b6acd1d404f470a2aabb (patch) | |
| tree | db78e2d6f69cb3798e5153991955a1047cc6b99b /xmake/modules/core/tools/cl.lua | |
| parent | c6c43cf5fd05f8fb161771eedf7abab57a958ba5 (diff) | |
improve path.directory
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
| -rw-r--r-- | xmake/modules/core/tools/cl.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index fc701d5d8..fb2d69a53 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -330,7 +330,8 @@ end function _compile1(self, sourcefile, objectfile, dependinfo, flags) -- ensure the object directory - local objectdir = path.directory(objectfile) + -- @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()) if not os.isdir(objectdir) then os.mkdir(objectdir) end |
