mirror of
https://github.com/bytedance/g3.git
synced 2026-10-19 09:43:22 +00:00
require aarch64 neon and aes feature by default
This commit is contained in:
parent
da611db09a
commit
baddd3280a
2 changed files with 19 additions and 0 deletions
|
|
@ -2,3 +2,8 @@
|
|||
rustflags = [
|
||||
"-C", "target-cpu=x86-64-v2",
|
||||
]
|
||||
|
||||
[target.'cfg(target_arch = "aarch64")']
|
||||
rustflags = [
|
||||
"-C", "target-feature=+neon,+aes",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -3,6 +3,20 @@ OpenSSL Variants
|
|||
|
||||
There are many forks of OpenSSL available, this doc will show you how to build with them.
|
||||
|
||||
# Vendored OpenSSL
|
||||
|
||||
You can use `--features vendored-openssl` cargo build option to always use the latest stable OpenSSL version.
|
||||
|
||||
It is also recommended to set the following C compile options:
|
||||
|
||||
- x86-64
|
||||
|
||||
```-march=x86-64-v2```
|
||||
|
||||
- aarch64
|
||||
|
||||
```-march=armv8-a+aes```
|
||||
|
||||
# Tongsuo
|
||||
|
||||
See [Tongsuo](https://github.com/Tongsuo-Project/Tongsuo) for more introduction.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue