Skip to content

Conversation

@justsmth
Copy link
Contributor

@justsmth justsmth commented Jan 2, 2026

Issues:

Addresses: aws/aws-lc-rs#980

Description of changes:

  • Fixes powerpc64 detection w/ certain compilers. See here.
  • Makes the detection of 64-bit and endian-ness consistent across all targets.
    • Adds sanity checks in "base.h" for what was detected.

Testing:

All existing CI jobs (including those for cross-compilation) pass.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

@codecov-commenter
Copy link

codecov-commenter commented Jan 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.21%. Comparing base (491226c) to head (c650a2b).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2926      +/-   ##
==========================================
- Coverage   78.21%   78.21%   -0.01%     
==========================================
  Files         690      690              
  Lines      118737   118737              
  Branches    16680    16679       -1     
==========================================
- Hits        92876    92873       -3     
- Misses      24972    24975       +3     
  Partials      889      889              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@justsmth justsmth force-pushed the update-platform-detection branch 4 times, most recently from 9eb1abb to d6b9afd Compare January 2, 2026 17:39
@justsmth justsmth force-pushed the update-platform-detection branch from d6b9afd to 95885f9 Compare January 2, 2026 22:09
@justsmth justsmth changed the title [DRAFT] Improve platform detection Fix ppc64le; Improve platform detection Jan 5, 2026
@justsmth justsmth marked this pull request as ready for review January 5, 2026 13:59
@justsmth justsmth requested a review from a team as a code owner January 5, 2026 13:59
@justsmth justsmth requested a review from torben-hansen January 5, 2026 18:29
torben-hansen
torben-hansen previously approved these changes Jan 5, 2026
#define OPENSSL_STATIC_ASSERT(cond, error) AWSLC_STATIC_ASSERT_ADD_ERROR(cond, error)

// Sanity check of "target.h": OPENSSL_64_BIT/OPENSSL_32_BIT must match actual pointer size
#if defined(OPENSSL_64_BIT)
Copy link
Contributor

Choose a reason for hiding this comment

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

One comment on this is that these tests are duplicated many many times per build because this code is included in quite a few compilation units. Not blocking, just wanted to mention it.

samuel40791765
samuel40791765 previously approved these changes Jan 5, 2026
@justsmth justsmth enabled auto-merge (squash) January 5, 2026 20:36
@justsmth justsmth dismissed stale reviews from samuel40791765 and torben-hansen via e66db72 January 5, 2026 20:52
@justsmth justsmth force-pushed the update-platform-detection branch 4 times, most recently from b756ced to 83140a1 Compare January 5, 2026 21:43
@justsmth justsmth force-pushed the update-platform-detection branch from 83140a1 to c650a2b Compare January 5, 2026 21:48
@justsmth justsmth merged commit 56701c6 into aws:main Jan 6, 2026
400 checks passed
@justsmth justsmth deleted the update-platform-detection branch January 6, 2026 16:26
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.

4 participants