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

Fix error for custom targets #510

Merged
merged 5 commits into from
Mar 10, 2023

Conversation

pinkforest
Copy link
Contributor

Fixes #508
Supercedes #509

Desired behaviour is to require explicit setting in case of custom targets and give our helpful error message.

Also clears out the unwrap for missing standard TARGET in case of being used in non-Cargo build system.

Copy link
Contributor

@rozbb rozbb left a comment

Choose a reason for hiding this comment

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

Nice! Left small comments

build.rs Outdated Show resolved Hide resolved
build.rs Outdated Show resolved Hide resolved
build.rs Outdated Show resolved Hide resolved
@rozbb rozbb merged commit 67b8c2e into dalek-cryptography:main Mar 10, 2023
@semenov-vladyslav
Copy link
Contributor

This RP does not fix #508. The logic is pretty much the same is before but with nicer error messages. The issue is that I can't set curve25519_dalek_bits. Maybe it's the issue with the tools that I'm using, and not with this crate though.

@pinkforest
Copy link
Contributor Author

pinkforest commented Mar 11, 2023

Referring back to: #508 (comment)

I suspect the custom build tools which are not part of Rust are not signalling the right cfg's to rustc as it works with standard rustc tooling.

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.

Build script failure on platform detection
3 participants