Skip to content

Commit

Permalink
Print num symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
malfet committed Sep 4, 2024
1 parent 098ded5 commit ef85e90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/check_binary_symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def check_lib_symbols_for_abi_correctness(lib: str, pre_cxx11_abi: bool = True)
print(f"lib: {lib}")
num_cxx11_symbols = count_symbols(lib, LIBTORCH_CXX11_PATTERNS)
num_pre_cxx11_symbols = count_symbols(lib, LIBTORCH_PRE_CXX11_PATTERNS)
print(f"num_cxx11_symbols: {num_cxx11_symbols}")
print(f"num_pre_cxx11_symbols: {num_pre_cxx11_symbols}")
if pre_cxx11_abi:
if num_cxx11_symbols > 0:
raise RuntimeError("Found cxx11 symbols, but there shouldn't be any")
Expand Down

0 comments on commit ef85e90

Please sign in to comment.