Skip to content

Commit

Permalink
Check for MIPSEB in target.h (aws#2143)
Browse files Browse the repository at this point in the history
### Issues:
Addresses: 
* aws/aws-lc-rs#522

### Description of changes: 
Setup macros for big-endian MIPS in "target.h"

### Callout
A contributor informs us that the build for `mips-unknown-linux-musl`
succeeds with this change:
aws/aws-lc-rs#522 (comment)

### Testing:
No CI testing for it. 

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.
  • Loading branch information
justsmth authored and manastasova committed Jan 30, 2025
1 parent 9d3b72b commit 3b18668
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/openssl/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
#elif defined(__MIPSEL__) && defined(__LP64__)
#define OPENSSL_64_BIT
#define OPENSSL_MIPS64
#elif defined(__MIPSEB__) && !defined(__LP64__)
#define OPENSSL_32_BIT
#define OPENSSL_MIPS
#define OPENSSL_BIG_ENDIAN
#elif defined(__riscv) && __SIZEOF_POINTER__ == 8
#define OPENSSL_64_BIT
#define OPENSSL_RISCV64
Expand Down

0 comments on commit 3b18668

Please sign in to comment.