summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2017-02-17 23:10:55 +0800
committerruki <[email protected]>2017-02-17 23:10:55 +0800
commit9c9612d4679e4091af7aabc797e3a6ecbe7d3733 (patch)
tree8af3d4b08df867792d233c6d4fd585e7d11c34b4
parentf40e78236da8c17d9417da88b8cf077c03a38fa8 (diff)
check golang tools for linux
-rw-r--r--xmake/platforms/linux/check.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/platforms/linux/check.lua b/xmake/platforms/linux/check.lua
index c4f89e11c..0b8679fa1 100644
--- a/xmake/platforms/linux/check.lua
+++ b/xmake/platforms/linux/check.lua
@@ -113,6 +113,11 @@ function _check_toolchains(config)
checker.check_toolchain(config, "sh", cross, "clang", "the shared library linker")
checker.check_toolchain(config, "sc", cross, "swiftc", "the swift compiler")
checker.check_toolchain(config, "dd", cross, "lldb", "the debugger")
+
+ -- check for go tools
+ checker.check_toolchain(config, "go", "", "go", "the golang compiler")
+ checker.check_toolchain(config, "go-ar","", "go", "the golang archiver")
+ checker.check_toolchain(config, "go-ld","", "go", "the golang linker")
end
-- check it