summaryrefslogtreecommitdiff
path: root/bin/find-mergedlib-can-be-private.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/find-mergedlib-can-be-private.py')
-rwxr-xr-xbin/find-mergedlib-can-be-private.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/find-mergedlib-can-be-private.py b/bin/find-mergedlib-can-be-private.py
index ba09996b4757..ac9d96712391 100755
--- a/bin/find-mergedlib-can-be-private.py
+++ b/bin/find-mergedlib-can-be-private.py
@@ -143,7 +143,12 @@ pool = multiprocessing.Pool(multiprocessing.cpu_count())
classes_with_exported_symbols = set(pool.map(extract_class, list(exported_symbols)))
classes_with_imported_symbols = set(pool.map(extract_class, list(imported_symbols)))
+# Some stuff is particular to Windows, so won't be found by a Linux analysis, so remove
+# those classes.
+can_be_private_classes = classes_with_exported_symbols - classes_with_imported_symbols;
+can_be_private_classes.discard("SpinField")
+
with open("bin/find-mergedlib-can-be-private.classes.results", "wt") as f:
- for sym in sorted(classes_with_exported_symbols - classes_with_imported_symbols):
+ for sym in sorted(can_be_private_classes):
if sym.startswith("std::") or sym.startswith("void std::"): continue
f.write(sym + "\n")