summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/gcc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/core/tools/gcc.lua')
-rw-r--r--xmake/modules/core/tools/gcc.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index 3912d7031..071a8140a 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -419,7 +419,8 @@ end
function _compile1(self, sourcefile, objectfile, dependinfo, flags)
-- ensure the object directory
- os.mkdir(path.directory(objectfile))
+ -- @note this path here has been normalized, we can quickly find it by the unique path separator prompt
+ os.mkdir(path.directory(objectfile, path.sep()))
-- compile it
local depfile = dependinfo and os.tmpfile() or nil