fix wasm build

This commit is contained in:
Pascal Engélibert 2022-08-26 11:01:28 +02:00
parent be4e9232cc
commit 0ab8cf1835

View file

@ -18,6 +18,7 @@ use std::io::Write;
use ringbuf::{Consumer, Producer};
use std::sync::Arc;
#[cfg(not(target_arch = "wasm32"))]
use core::arch::x86_64::{
_MM_FLUSH_ZERO_ON,
// _MM_FLUSH_ZERO_OFF,
@ -325,6 +326,7 @@ impl NodeExecutor {
GraphMessage::NewProg { prog, copy_old_out } => {
let mut prev_prog = std::mem::replace(&mut self.prog, prog);
#[cfg(not(target_arch = "wasm32"))]
unsafe {
_MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
}