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

build.rs: Refactor preassembly in package process in preparation for aarch64-pc-windows-msvc. #1346

Merged
merged 1 commit into from
Aug 15, 2021

Conversation

briansmith
Copy link
Owner

No description provided.

@briansmith briansmith self-assigned this Aug 13, 2021
@briansmith
Copy link
Owner Author

@awakecoding @Alovchin91 Please review this. This generalizes the logic in the package process so that it can use the C compiler to assemble code instead of assuming that nasm should be used. for aarch64-pc-windows-msvc, you'd still need to add the AsmTarget entry and do some minimal changes, but I think this will allow you to get rid of clang() in your PR.

awakecoding
awakecoding previously approved these changes Aug 13, 2021
Copy link
Contributor

@awakecoding awakecoding left a comment

Choose a reason for hiding this comment

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

LGTM

build.rs Outdated Show resolved Hide resolved
build.rs Show resolved Hide resolved
build.rs Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Aug 13, 2021

Codecov Report

Merging #1346 (329072e) into main (c8ca693) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1346   +/-   ##
=======================================
  Coverage   92.82%   92.82%           
=======================================
  Files         117      117           
  Lines       17826    17826           
  Branches      195      195           
=======================================
  Hits        16547    16547           
+ Misses       1245     1244    -1     
- Partials       34       35    +1     
Impacted Files Coverage Δ
crypto/poly1305/poly1305.c 98.43% <0.00%> (-0.53%) ⬇️
src/aead/less_safe_key.rs 96.55% <0.00%> (+0.86%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c8ca693...329072e. Read the comment docs.

@briansmith
Copy link
Owner Author

Good questions. I just submitted PR #1347 to replace Target::is_git and to document why we do this weird stuff. I've verified that it is easy to rebase this PR on top of that one, so once that's merged, I'll update this PR with the clarified version.

@briansmith
Copy link
Owner Author

Good questions. I just submitted PR #1347 to replace Target::is_git and to document why we do this weird stuff. I've verified that it is easy to rebase this PR on top of that one, so once that's merged, I'll update this PR with the clarified version.

I merged PR #1347 and rebased this PR on top of it.

Copy link
Owner Author

@briansmith briansmith left a comment

Choose a reason for hiding this comment

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

Thanks for the review. I think the construction of Target is now much clearer thanks to the changes prompted by your questions.

build.rs Outdated Show resolved Hide resolved
build.rs Show resolved Hide resolved
@briansmith
Copy link
Owner Author

I've now rebased this on top of #1348.

Alovchin91
Alovchin91 previously approved these changes Aug 14, 2021
@briansmith
Copy link
Owner Author

Not sure what's going on with the aarch64-apple-darwin nightly build in CI that is failing. Possibly a regression in the Rust Nightly toolchain?

@briansmith
Copy link
Owner Author

Not sure what's going on with the aarch64-apple-darwin nightly build in CI that is failing. Possibly a regression in the Rust Nightly toolchain?

I rebased this on top of PR #1349 to allow CI to work.

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.

None yet

3 participants