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] [lib]
crate-type = ["cdylib"] 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] [dependencies]
nih_plug = { path = "../../", features = ["assert_process_allocs"] } nih_plug = { path = "../../", features = ["assert_process_allocs"] }

View file

@ -25,9 +25,9 @@ on macOS.
### Building ### Building
After installing [Rust](https://rustup.rs/), you can compile Crossover as After installing **nightly** [Rust](https://rustup.rs/) toolchain, you can
follows: compile Crossover as follows:
```shell ```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 // You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>. // 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 nih_plug::prelude::*;
use std::sync::Arc; use std::sync::Arc;