Skip to content

Commit

Permalink
wasmtime: Add libc as a dependency on FreeBSD in the `jit-icache-cohe…
Browse files Browse the repository at this point in the history
…rence` 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.
  • Loading branch information
afonso360 authored Nov 28, 2022
1 parent 0d27c48 commit 240ff2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/jit-icache-coherence/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 240ff2b

Please sign in to comment.