Set rustflags target-feature without space

This commit is contained in:
zonyitoo
2020-08-20 15:42:11 +08:00
parent 6b0c6baccf
commit 4493c55235
2 changed files with 5 additions and 2 deletions

View File

@@ -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",
]

View File

@@ -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 '"'