diff options
| author | ruki <[email protected]> | 2021-10-12 14:46:57 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-12 14:46:57 +0800 |
| commit | 2829b6248dc66799d1f21407bbe2ac1ddfec9d5c (patch) | |
| tree | 3357d5245c07aa0f95483a04b8bdd62dd0733781 | |
| parent | b24465b8af066aabd8ef0d56bd725f743381e72a (diff) | |
| parent | 72fabb25dd367d87faa7a9461a6e79faa7196c48 (diff) | |
Merge pull request #1744 from xq114/patch-1
make symbols outsides the library not exposed
| -rw-r--r-- | xmake/rules/utils/symbols/export_all/export_all.lua | 3 |
1 files changed, 2 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 800157411..f8247a878 100644 --- a/xmake/rules/utils/symbols/export_all/export_all.lua +++ b/xmake/rules/utils/symbols/export_all/export_all.lua @@ -56,8 +56,9 @@ function main (target, opt) local objectsymbols = try { function () return os.iorunv(dumpbin.program, {"/symbols", "/nologo", objectfile}) end } if objectsymbols then for _, line in ipairs(objectsymbols:split('\n', {plain = true})) do + -- https://docs.microsoft.com/en-us/cpp/build/reference/symbols -- 008 00000000 SECT3 notype () External | add - if line:find("External") then + if line:find("External") and not line:find("UNDEF") then local symbol = line:match(".*External%s+| (.*)") if symbol then symbol = symbol:split('%s')[1] |
