mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-02-09 01:59:16 +08:00
Set rustflags target-feature without space
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))']
|
||||
rustflags = [
|
||||
"-C", "target-feature=+aes,+ssse3",
|
||||
"-Ctarget-feature=+aes,+ssse3",
|
||||
]
|
||||
|
||||
[target.'cfg(target_arch = "aarch64")']
|
||||
rustflags = [
|
||||
"-C", "target-feature=+aes,+crypto,+neon",
|
||||
"-Ctarget-feature=+aes,+crypto,+neon",
|
||||
]
|
||||
|
||||
@@ -11,6 +11,9 @@ $TargetTriple = (rustc -Vv | Select-String -Pattern "host: (.*)" | ForEach-Objec
|
||||
Write-Host "Started building release for ${TargetTriple} ..."
|
||||
|
||||
cargo build --release --features "aes-pmac-siv openssl-vendored"
|
||||
if (!$?) {
|
||||
exit $LASTEXITCODE
|
||||
}
|
||||
|
||||
$Version = (Select-String -Pattern '^version *= *"([^"]*)"$' -Path "${PSScriptRoot}\..\Cargo.toml" | ForEach-Object { $_.Matches.Value }).split()[-1]
|
||||
$Version = $Version -replace '"'
|
||||
|
||||
Reference in New Issue
Block a user