summaryrefslogtreecommitdiff
path: root/xmake/core/tool/compiler.lua
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/core/tool/compiler.lua
parentbd54ed5a6c59f75ad768d4d37843262314dd1aa1 (diff)
build go project ok
Diffstat (limited to 'xmake/core/tool/compiler.lua')
-rw-r--r--xmake/core/tool/compiler.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/core/tool/compiler.lua b/xmake/core/tool/compiler.lua
index 7d6d133be..b932a9ed3 100644
--- a/xmake/core/tool/compiler.lua
+++ b/xmake/core/tool/compiler.lua
@@ -91,8 +91,11 @@ function compiler.load(sourcekind)
end
instance._LANGUAGE = result
+ -- init target kind
+ instance._TARGETKIND = "object"
+
-- init name flags
- instance._NAMEFLAGS = result:nameflags()["object"]
+ instance._NAMEFLAGS = result:nameflags()[instance:_targetkind()]
-- init flag kinds
instance._FLAGKINDS = table.wrap(result:sourceflags()[sourcekind])