summaryrefslogtreecommitdiff
path: root/xmake/languages
diff options
context:
space:
mode:
authorruki <[email protected]>2017-02-17 20:02:00 +0800
committerruki <[email protected]>2017-02-17 20:02:00 +0800
commit6fcb7f953c4c397b7e08bf577f37195508663260 (patch)
tree72d63622b2c4a84079d88c3d2f40aab86f032156 /xmake/languages
parentbd54ed5a6c59f75ad768d4d37843262314dd1aa1 (diff)
build go project ok
Diffstat (limited to 'xmake/languages')
-rwxr-xr-xxmake/languages/golang/xmake.lua16
1 files changed, 6 insertions, 10 deletions
diff --git a/xmake/languages/golang/xmake.lua b/xmake/languages/golang/xmake.lua
index 691f89be0..04f915e5e 100755
--- a/xmake/languages/golang/xmake.lua
+++ b/xmake/languages/golang/xmake.lua
@@ -32,10 +32,10 @@ language("golang")
set_sourceflags {go = "goflags"}
-- set target kinds
- set_targetkinds {binary = "go", static = "go", shared = "go"}
+ set_targetkinds {binary = "go-ld", static = "go-ar"}
-- set target flags
- set_targetflags {binary = "ldflags", static = "arflags", shared = "shflags"}
+ set_targetflags {binary = "go-ldflags", static = "go-arflags"}
-- on load
on_load("load")
@@ -102,16 +102,12 @@ language("golang")
, {nil, "goflags", "kv", nil, "The Golang Compiler Flags" }
, {}
- , {nil, "ld", "kv", nil, "The Linker" }
- , {nil, "ldflags", "kv", nil, "The Binary Linker Flags" }
+ , {nil, "go-ld", "kv", nil, "The Linker" }
+ , {nil, "go-ldflags", "kv", nil, "The Binary Linker Flags" }
, {}
- , {nil, "ar", "kv", nil, "The Static Library Linker" }
- , {nil, "arflags", "kv", nil, "The Static Library Linker Flags" }
-
- , {}
- , {nil, "sh", "kv", nil, "The Shared Library Linker" }
- , {nil, "shflags", "kv", nil, "The Shared Library Linker Flags" }
+ , {nil, "go-ar", "kv", nil, "The Static Library Linker" }
+ , {nil, "go-arflags", "kv", nil, "The Static Library Linker Flags" }
, {}
, {nil, "links", "kv", nil, "The Link Libraries" }