summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-05-15 22:17:34 +0800
committerruki <[email protected]>2021-05-15 22:17:34 +0800
commit17373ff1f914da470d3c0f6c3bbc30e32d5e666a (patch)
tree75d2479ce5912de472684696305e8203495d8d97
parent87b7d6000f31a397932f06d02b2425a4db2da44f (diff)
fix export all symbols for windows/x86
-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