diff options
| author | ruki <[email protected]> | 2019-03-14 23:57:38 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-03-14 17:45:49 +0800 |
| commit | 9036abe2d5d282bd19c9f6bdd2acee9ac03051fc (patch) | |
| tree | 9de2c370b841128b754bd2590e4d0a82173bbe7f /xmake/core/tool/compiler.lua | |
| parent | 1885d14af400ea5658dc89431fc1353184e40643 (diff) | |
fix uninstall and remove unlink for package
Diffstat (limited to 'xmake/core/tool/compiler.lua')
| -rw-r--r-- | xmake/core/tool/compiler.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xmake/core/tool/compiler.lua b/xmake/core/tool/compiler.lua index 781e95e7d..a3715379f 100644 --- a/xmake/core/tool/compiler.lua +++ b/xmake/core/tool/compiler.lua @@ -266,7 +266,7 @@ end -- -- @param opt the argument options (contain all the compiler attributes of target), -- .e.g --- {target = ..., targetkind = "static", config = {defines = "", cxflags = "", includedirs = ""}} +-- {target = ..., targetkind = "static", configs = {defines = "", cxflags = "", includedirs = ""}} -- -- @return flags string, flags list -- @@ -300,8 +300,9 @@ function compiler:compflags(opt) end -- add flags for the argument - if opt.config then - self:_add_flags_from_argument(flags, target, opt.config) + local configs = opt.configs or opt.config + if configs then + self:_add_flags_from_argument(flags, target, configs) end -- add flags from the platform |
