summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwsw0108 <[email protected]>2021-07-08 16:50:24 +0800
committerwsw0108 <[email protected]>2021-07-08 16:50:24 +0800
commit588410ad1aed835a2e77c77a7421e1cea6285d89 (patch)
tree38a9f23f1298c0d14cbf1f8173b4367a5d085ce2
parent635a991ec2e5da0ff77fb480bfadeb3fc0b83abd (diff)
exclude more symbols for utils.symbols.export_all
-rw-r--r--xmake/rules/utils/symbols/export_all/export_all.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/xmake/rules/utils/symbols/export_all/export_all.lua b/xmake/rules/utils/symbols/export_all/export_all.lua
index d403859ba..1a40e9820 100644
--- a/xmake/rules/utils/symbols/export_all/export_all.lua
+++ b/xmake/rules/utils/symbols/export_all/export_all.lua
@@ -66,7 +66,13 @@ function main (target, opt)
symbol = symbol:sub(2)
end
if export_classes or not symbol:startswith("?") then
- allsymbols:insert(symbol)
+ if export_classes then
+ if not symbol:startswith("??_G") and not symbol:startswith("??_E") then
+ allsymbols:insert(symbol)
+ end
+ else
+ allsymbols:insert(symbol)
+ end
end
end
end