summaryrefslogtreecommitdiff
path: root/xmake/core/tool/compiler.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-04-01 13:47:48 +0800
committerruki <[email protected]>2017-04-01 13:47:48 +0800
commitcb5af728adf9d0d2f125c3054d1b6670d3debb9a (patch)
tree59b0520b235d9fafc8f119c3d102c84d856b7065 /xmake/core/tool/compiler.lua
parente7673022575cb315c7f443b79641e08f761bb12b (diff)
find the project directory automatically
Diffstat (limited to 'xmake/core/tool/compiler.lua')
-rw-r--r--xmake/core/tool/compiler.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/tool/compiler.lua b/xmake/core/tool/compiler.lua
index 0fe79c6a4..a550564da 100644
--- a/xmake/core/tool/compiler.lua
+++ b/xmake/core/tool/compiler.lua
@@ -181,10 +181,10 @@ function compiler:compflags(target)
self:_addflags_from_language(flags, target)
-- add flags from the platform
- self:_addflags_from_platform(flags, target:targetkind())
+ self:_addflags_from_platform(flags, target:get("kind"))
-- add flags from the compiler
- self:_addflags_from_compiler(flags, target:targetkind())
+ self:_addflags_from_compiler(flags, target:get("kind"))
-- remove repeat
flags = table.unique(flags)