1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-03-17 20:28:03 +02:00

Actually use simd/avx optimizations in bytecount crate.

Also update compile script.
This commit is contained in:
Andrew Gallant 2016-11-05 22:44:33 -04:00
parent 4368913d8f
commit 5bd0edbbe1
3 changed files with 8 additions and 4 deletions

3
Cargo.lock generated
View File

@ -33,6 +33,9 @@ dependencies = [
name = "bytecount"
version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"simd 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "crossbeam"

View File

@ -45,7 +45,8 @@ kernel32-sys = "0.2"
winapi = "0.2"
[features]
simd-accel = ["regex/simd-accel"]
avx-accel = ["bytecount/avx-accel"]
simd-accel = ["bytecount/avx-accel", "regex/simd-accel"]
[profile.release]
debug = true

View File

@ -1,5 +1,5 @@
#!/bin/sh
export RUSTFLAGS="-C target-feature=+ssse3"
# export RUSTFLAGS="-C target-cpu=native"
cargo build --release --features simd-accel
# export RUSTFLAGS="-C target-feature=+ssse3"
export RUSTFLAGS="-C target-cpu=native"
cargo build --release --features 'simd-accel avx-accel'