1
0
Fork 0

Enable simd for the Crossover plugin

This commit is contained in:
Robbert van der Helm 2022-05-29 14:54:28 +02:00
parent c83fb2863e
commit 99ba25d1bd
3 changed files with 14 additions and 3 deletions

View file

@ -8,5 +8,11 @@ license = "GPL-3.0-or-later"
[lib]
crate-type = ["cdylib"]
[features]
default = ["simd"]
# Make it go fast, vroom. Requires a nightly compiler. Non-SIMD builds are
# currently unsupported.
simd = ["nih_plug/simd"]
[dependencies]
nih_plug = { path = "../../", features = ["assert_process_allocs"] }

View file

@ -25,9 +25,9 @@ on macOS.
### Building
After installing [Rust](https://rustup.rs/), you can compile Crossover as
follows:
After installing **nightly** [Rust](https://rustup.rs/) toolchain, you can
compile Crossover as follows:
```shell
cargo xtask bundle crossover --release
cargo +nightly xtask bundle crossover --release
```

View file

@ -14,6 +14,11 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#![cfg_attr(feature = "simd", feature(portable_simd))]
#[cfg(not(feature = "simd"))]
compile_error!("Compiling without SIMD support is currently not supported");
use nih_plug::prelude::*;
use std::sync::Arc;