conch_parser: restore building the Python extension

Summary:
On macOS the exported symbol has a leading underscore. Change buck config to
fix the build.

See the Python stdlib `_sqlite3` for example:

  $ nm -gU /opt/homebrew/Cellar/python38/3.8.3_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload/_sqlite3.cpython-38-darwin.so
  0000000000005132 T _PyInit__sqlite3
  ...

Reviewed By: DurhamG

Differential Revision: D35829957

fbshipit-source-id: 23259b982313baae01db0dc6ad4cbe79747e9766
This commit is contained in:
Jun Wu 2022-04-21 17:36:57 -07:00 committed by Facebook GitHub Bot
parent 8ce9b9ce17
commit c3d5d9f00f

View File

@ -1786,6 +1786,11 @@ hgmainfeatures = (
or None
)
rustextmodules = [
RustExtension(
"conch_parser",
package="",
manifest="edenscmnative/conch_parser/Cargo.toml",
)
]
rustextbinaries = [
RustBinary(