[libcxx-commits] [libcxx] [libc++] Reject abilist if it contains an ABI tag (PR #139030)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu May 8 10:01:43 PDT 2025


================
@@ -80,6 +80,11 @@ def main():
         old_syms_list, _ = util.filter_stdlib_symbols(old_syms_list)
         new_syms_list, _ = util.filter_stdlib_symbols(new_syms_list)
 
+    for symbol in new_syms_list:
+        if 'B' in symbol["name"]:
+            print(f"Symbol {symbol["name"]} contains an ABI tag!")
+            sys.exit(1)
----------------
ldionne wrote:

Would it be possible to add this as a `lit` test instead? One thing we could potentially do is `nm -g %{lib-dir}/libc++.dylib | grep -v 'B'` or something along those lines?

https://github.com/llvm/llvm-project/pull/139030


More information about the libcxx-commits mailing list