[libcxx-commits] [libcxx] [libcxx] Support ABI symbol sizes on macOS (PR #75623)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Apr 17 18:17:52 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r 0ab3f160c4bff1c7d57c046b95ab8c5035ae986f...8360dc45ebc92c68fb1ba424cd604854a4f923e8 libcxx/utils/generate_abi_list.py libcxx/utils/libcxx/sym_check/util.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- generate_abi_list.py	2024-04-18 01:14:34.000000 +0000
+++ generate_abi_list.py	2024-04-18 01:17:22.606968 +0000
@@ -50,15 +50,18 @@
     symbols = libcxx.sym_check.extract.extract_symbols(args.library)
     symbols, _ = libcxx.sym_check.util.filter_stdlib_symbols(symbols)
 
     supplemental_info = {}
     if args.mapfile != None:
-        map_extract_success, supplemental_info = libcxx.sym_check.util.extract_object_sizes_from_map(
-            args.mapfile
-        )
+        (
+            map_extract_success,
+            supplemental_info,
+        ) = libcxx.sym_check.util.extract_object_sizes_from_map(args.mapfile)
         if not map_extract_success:
-            print(f"ERROR: Request to build the ABI list with the help of a mapfile, but the specified mapfile ({args.mapfile}) could not be found.")
+            print(
+                f"ERROR: Request to build the ABI list with the help of a mapfile, but the specified mapfile ({args.mapfile}) could not be found."
+            )
             return 1
 
     # Specific to the case where there is supplemental symbol information from a mapfile ...
     if len(supplemental_info) != 0:
         for sym in symbols:

``````````

</details>


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


More information about the libcxx-commits mailing list