summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/rules/utils/symbols/export_all/export_all.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/rules/utils/symbols/export_all/export_all.lua b/xmake/rules/utils/symbols/export_all/export_all.lua
index 5d14e979b..54fe738ea 100644
--- a/xmake/rules/utils/symbols/export_all/export_all.lua
+++ b/xmake/rules/utils/symbols/export_all/export_all.lua
@@ -59,6 +59,9 @@ function main (target, opt)
if symbol then
symbol = symbol:split('%s')[1]
if not symbol:startswith("__") and not symbol:startswith("?") then
+ if target:is_arch("x86") and symbol:startswith("_") then
+ symbol = symbol:sub(2)
+ end
allsymbols:insert(symbol)
end
end