From 240ff2b854bd72006d8094a1626fa62d7740ad1b Mon Sep 17 00:00:00 2001 From: Afonso Bordado Date: Mon, 28 Nov 2022 01:18:28 +0000 Subject: [PATCH] wasmtime: Add libc as a dependency on FreeBSD in the `jit-icache-coherence` crate (#5323) This gets this package to build for `x86_64`, but does not include any cache clearing for `aarch64-freebsd`. Which will probably build, but not work. As far as I can tell membarriers are still in the process of being added. See: https://reviews.freebsd.org/D32360 Since FreeBSD is mirroring the Linux membarrier syscall we may be able to reuse the same implementation for both Linux and FreeBSD for AArch64. --- crates/jit-icache-coherence/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/jit-icache-coherence/Cargo.toml b/crates/jit-icache-coherence/Cargo.toml index 30a1965990..a2b8e3d25a 100644 --- a/crates/jit-icache-coherence/Cargo.toml +++ b/crates/jit-icache-coherence/Cargo.toml @@ -19,5 +19,5 @@ features = [ "Win32_System_Diagnostics_Debug", ] -[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dependencies.libc] +[target.'cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd"))'.dependencies.libc] version = "0.2.42"