Skip to content

Commit

Permalink
Fix shared memory disabled build
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Oct 31, 2024
1 parent 6bffc67 commit 687fab0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ use crate::prelude::*;
use crate::runtime::vm::{RuntimeLinearMemory, VMMemoryDefinition, VMStore, WaitResult};
use core::ops::Range;
use core::time::Duration;
use wasmtime_environ::{MemoryPlan, Trap};
use wasmtime_environ::{Trap, Tunables};

#[derive(Clone)]
pub enum SharedMemory {}

impl SharedMemory {
pub fn wrap(
_plan: &MemoryPlan,
_ty: &wasmtime_environ::Memory,
_tunables: &Tunables,
_memory: Box<dyn RuntimeLinearMemory>,
_ty: wasmtime_environ::Memory,
) -> Result<Self> {
bail!("support for shared memories was disabled at compile time");
}
Expand Down

0 comments on commit 687fab0

Please sign in to comment.