summaryrefslogtreecommitdiff
path: root/xmake/tools/link.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/tools/link.lua')
-rwxr-xr-xxmake/tools/link.lua11
1 files changed, 7 insertions, 4 deletions
diff --git a/xmake/tools/link.lua b/xmake/tools/link.lua
index 85c97fb95..3b57e551a 100755
--- a/xmake/tools/link.lua
+++ b/xmake/tools/link.lua
@@ -110,11 +110,14 @@ function link(objectfiles, targetfile, flags)
os.run(linkcmd(objectfiles, targetfile, flags))
end
--- run command
-function run(...)
+-- make the archive command
+function archivecmd(objectfiles, targetfile, flags)
+ return linkcmd(objectfiles, targetfile, flags)
+end
- -- run it
- os.run(...)
+-- archive the library file
+function archive(objectfiles, targetfile, flags)
+ link(objectfile, targetfile, flags)
end
-- check the given flags