Skip to content

Commit 3f56c2c

Browse files
author
Pritam Dodeja
committed
Remove python 2 init symbols to get compilation to work on 3.12.4
Stricter llvm linker was not allowing compilation to succeed.
1 parent 0811bbf commit 3f56c2c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

ml_metadata/ml_metadata.bzl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,9 @@ def ml_metadata_pybind_extension(
221221
"PyInit_%s" % sname,
222222
]
223223

224-
# For Linux, include Python 2 symbols for compatibility
224+
# For Linux, do not include Python 2 symbols for compatibility
225225
# (version script allows undefined symbols)
226226
exported_symbols_linux = [
227-
"init%s" % sname,
228-
"init_%s" % sname,
229227
"PyInit_%s" % sname,
230228
]
231229

0 commit comments

Comments
 (0)