Skip to content

Commit

Permalink
debug cross
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Jul 21, 2022
1 parent 0fcc104 commit 0c8bc00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setuptools_rust/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ def build_extension(
)
)
if len(artifacts) == 0:
print("package_id was:", package_id)
raise DistutilsExecError(
"Rust build failed; unable to find any build artifacts"
)
Expand Down Expand Up @@ -809,6 +810,7 @@ def _find_cargo_artifacts(
['/file/two/baz.rlib']
"""
for message in cargo_messages:
print(message)
# only bother parsing messages that look like a match
if "compiler-artifact" in message and package_id in message and kind in message:
parsed = json.loads(message)
Expand Down

0 comments on commit 0c8bc00

Please sign in to comment.