diff options
| author | OpportunityLiu <[email protected]> | 2019-05-21 09:47:51 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-05-21 09:54:01 +0800 |
| commit | b9a9de043eccb54e6be4cf8a0108f96d856f2b43 (patch) | |
| tree | 3638e595e9acb54c09deb776975ca72f3de202f2 /xmake/modules/core/tools/tcc.lua | |
| parent | a4dfd8fd27eed47d760c78db4672fd50d0f2fbac (diff) | |
add more support
Diffstat (limited to 'xmake/modules/core/tools/tcc.lua')
| -rw-r--r-- | xmake/modules/core/tools/tcc.lua | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/xmake/modules/core/tools/tcc.lua b/xmake/modules/core/tools/tcc.lua index ce64777ad..8c819938a 100644 --- a/xmake/modules/core/tools/tcc.lua +++ b/xmake/modules/core/tools/tcc.lua @@ -49,6 +49,7 @@ function init(self) ["-W1"] = "-Wall" , ["-W2"] = "-Wall" , ["-W3"] = "-Wall" + , ["-W4"] = "-Wall -Wunsupported" -- strip , ["-s"] = "-s" @@ -96,11 +97,13 @@ function nf_warning(self, level) -- the maps local maps = { - none = "-w" - , less = "-W1" - , more = "-W3" - , all = "-Wall" - , error = "-Werror" + none = "-w" + , less = "-W1" + , more = "-W3" + , all = "-Wall" + , extra = "-Wunsupported" + , everything = "-Wall -Wunsupported -Wwrite-strings" + , error = "-Werror" } -- make it |
