summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/makefile/makefile.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-02-15 20:16:00 +0800
committerruki <[email protected]>2017-02-15 20:16:00 +0800
commit80d3a926e762d7b05654fdc778c70dad9881356d (patch)
tree34fcd030a4534e094a33d98adf70efbcd80e5438 /xmake/plugins/project/makefile/makefile.lua
parent97a9f451af73896e0b3f9158962e23bcff9787d1 (diff)
remove archiver
Diffstat (limited to 'xmake/plugins/project/makefile/makefile.lua')
-rwxr-xr-xxmake/plugins/project/makefile/makefile.lua8
1 files changed, 1 insertions, 7 deletions
diff --git a/xmake/plugins/project/makefile/makefile.lua b/xmake/plugins/project/makefile/makefile.lua
index 350cbc040..1c7ea5733 100755
--- a/xmake/plugins/project/makefile/makefile.lua
+++ b/xmake/plugins/project/makefile/makefile.lua
@@ -25,7 +25,6 @@
-- imports
import("core.tool.tool")
import("core.tool.linker")
-import("core.tool.archiver")
import("core.tool.compiler")
import("core.project.config")
import("core.project.project")
@@ -162,12 +161,7 @@ function _make_target(makefile, target)
makefile:print("")
-- make the command
- local command = nil
- if target:get("kind") == "static" then
- command = archiver.archivecmd(target:objectfiles(), targetfile, target)
- else
- command = linker.linkcmd(target:objectfiles(), targetfile, target)
- end
+ local command = linker.linkcmd(target:objectfiles(), targetfile, target)
-- make body
makefile:print("\t@echo linking.$(mode) %s", path.filename(targetfile))