diff options
| author | ruki <[email protected]> | 2018-11-13 22:48:36 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-11-13 10:51:40 +0800 |
| commit | 7d234801498d6e272d780407695ebff89a64d675 (patch) | |
| tree | 28313737e1c44c3d639fbf49ab05ed0bc68ec1d4 /xmake/modules/core/tools/cl.lua | |
| parent | bcfe7b269dc8ccca180099c8ce62f333a405ed11 (diff) | |
improve compiler tools
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
| -rw-r--r-- | xmake/modules/core/tools/cl.lua | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index cc6b0c680..e2434d0ec 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -30,10 +30,10 @@ import("core.language.language") function init(self) -- init cxflags - _g.cxflags = { "-nologo" } + self:set("cxflags", "-nologo") -- init flags map - _g.mapflags = + self:set("mapflags", { -- optimize ["-O0"] = "-Od" @@ -76,18 +76,13 @@ function init(self) -- others , ["-ftrapv"] = "" , ["-fsanitize=address"] = "" - } + }) -- init buildmodes - _g.buildmodes = + self:set("buildmodes", { ["object:sources"] = false - } -end - --- get the property -function get(self, name) - return _g[name] + }) end -- make the symbol flag |
