summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/ml.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-02-09 22:35:25 +0800
committerruki <[email protected]>2021-02-09 22:35:25 +0800
commit630b8dabbf701ef9b490add3e6def10a74970d00 (patch)
tree68c912ecf3cb234db3b8e6dc839895ce911a797f /xmake/modules/core/tools/ml.lua
parent22bc93e3eac36f077583faa90f515d436e4945df (diff)
improve core/tools and remove os.args
Diffstat (limited to 'xmake/modules/core/tools/ml.lua')
-rw-r--r--xmake/modules/core/tools/ml.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/ml.lua b/xmake/modules/core/tools/ml.lua
index e3893d05e..a90cade20 100644
--- a/xmake/modules/core/tools/ml.lua
+++ b/xmake/modules/core/tools/ml.lua
@@ -87,7 +87,7 @@ end
-- make the includedir flag
function nf_includedir(self, dir)
- return "-I" .. os.args(dir)
+ return {"-I", dir}
end
-- make the sysincludedir flag
@@ -97,7 +97,7 @@ end
-- make the compile arguments list
function compargv(self, sourcefile, objectfile, flags)
- return self:program(), table.join("-c", flags, "-Fo" .. os.args(objectfile), sourcefile)
+ return self:program(), table.join("-c", flags, "-Fo" .. objectfile, sourcefile)
end
-- compile the source file