Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplicity-sys: stop referring to non-exported mkJetCMR function #241

Merged
merged 1 commit into from
Aug 3, 2024

Conversation

apoelstra
Copy link
Collaborator

As seen when running

RUSTFLAGS=-Clink-dead-code cargo test --all-features

we are referring to a non-exported function mkJetCMR from the C code. By default rustc prunes this function and never tries to link it, but if you add the -Clink-dead-code rustflag (which may be needed when compiling to link with an external fuzzer) then linking fails.

As seen when running

    RUSTFLAGS=-Clink-dead-code cargo test --all-features

we are referring to a non-exported function mkJetCMR from the C code. By
default rustc prunes this function and never tries to link it, but if
you add the -Clink-dead-code rustflag (which may be needed when compiling
to link with an external fuzzer) then linking fails.
Copy link
Collaborator

@uncomputable uncomputable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 78e14de

@uncomputable uncomputable merged commit e42b267 into master Aug 3, 2024
27 checks passed
@apoelstra apoelstra deleted the 2024-07--dead-code branch August 4, 2024 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants