summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-07-08 18:54:20 +0800
committerGitHub <[email protected]>2021-07-08 18:54:20 +0800
commit28a463f8df23b65949a5cac73de4894fa7ec2785 (patch)
tree3788b200d648054244ad1ab15a9749cdf01ab3d8
parentce73725e6f90c76c191db3bba8f0bc7ad8e46760 (diff)
parent588410ad1aed835a2e77c77a7421e1cea6285d89 (diff)
Merge pull request #1493 from wsw0108/export_all_symbols
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