summaryrefslogtreecommitdiff
path: root/games/veloren-weekly/files/patch-wasmer
diff options
context:
space:
mode:
Diffstat (limited to 'games/veloren-weekly/files/patch-wasmer')
-rw-r--r--games/veloren-weekly/files/patch-wasmer13
1 files changed, 13 insertions, 0 deletions
diff --git a/games/veloren-weekly/files/patch-wasmer b/games/veloren-weekly/files/patch-wasmer
new file mode 100644
index 000000000000..6a96e688b71f
--- /dev/null
+++ b/games/veloren-weekly/files/patch-wasmer
@@ -0,0 +1,13 @@
+https://github.com/wasmerio/wasmer/commit/40403fed73d6
+
+--- cargo-crates/wasmer-vm-2.3.0/src/trap/traphandlers.rs.orig 1970-01-01 00:00:00 UTC
++++ cargo-crates/wasmer-vm-2.3.0/src/trap/traphandlers.rs
+@@ -271,7 +271,7 @@ cfg_if::cfg_if! {
+ ))] {
+ pc = context.uc_mcontext.gregs[libc::REG_EIP as usize] as usize;
+ sp = context.uc_mcontext.gregs[libc::REG_ESP as usize] as usize;
+- } else if #[cfg(all(target_os = "freebsd", target_arch = "x86"))] {
++ } else if #[cfg(all(target_os = "freebsd", any(target_arch = "x86", target_arch = "x86_64")))] {
+ pc = context.uc_mcontext.mc_rip as usize;
+ sp = context.uc_mcontext.mc_rsp as usize;
+ } else if #[cfg(all(target_vendor = "apple", target_arch = "x86_64"))] {