summaryrefslogtreecommitdiff
path: root/xmake/modules/core
diff options
context:
space:
mode:
authorruki <[email protected]>2020-08-26 23:27:15 +0800
committerruki <[email protected]>2020-08-26 23:27:15 +0800
commiteec4437eeefde00f583a26eab860641975c5613b (patch)
treec4d9412e4781350bfd8073d080bf034e09ff6019 /xmake/modules/core
parentac25a656e8bef9274a98f76c78626a2aeb514d33 (diff)
add winapi includes for tcc
Diffstat (limited to 'xmake/modules/core')
-rw-r--r--xmake/modules/core/tools/tcc.lua19
1 files changed, 0 insertions, 19 deletions
diff --git a/xmake/modules/core/tools/tcc.lua b/xmake/modules/core/tools/tcc.lua
index 62a5f970c..8e1209465 100644
--- a/xmake/modules/core/tools/tcc.lua
+++ b/xmake/modules/core/tools/tcc.lua
@@ -28,13 +28,6 @@ import("private.tools.ccache")
-- init it
function init(self)
- -- init mxflags
- self:set("mxflags", "-fmessage-length=0"
- , "-pipe"
- , "-DIBOutlet=__attribute__((iboutlet))"
- , "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))"
- , "-DIBAction=void)__attribute__((ibaction)")
-
-- init shflags
self:set("shflags", "-shared", "-rdynamic")
@@ -58,36 +51,26 @@ end
-- make the strip flag
function nf_strip(self, level)
-
- -- the maps
local maps =
{
debug = "-S"
, all = "-s"
}
-
- -- make it
return maps[level]
end
-- make the symbol flag
function nf_symbol(self, level)
-
- -- the maps
local maps =
{
debug = "-g"
, hidden = "-fvisibility=hidden"
}
-
- -- make it
return maps[level]
end
-- make the warning flag
function nf_warning(self, level)
-
- -- the maps
local maps =
{
none = "-w"
@@ -98,8 +81,6 @@ function nf_warning(self, level)
, everything = "-Wall -Wunsupported -Wwrite-strings"
, error = "-Werror"
}
-
- -- make it
return maps[level]
end