Skip to content

Commit

Permalink
Prefer 32-bit arithmetic on wasm32-wasi
Browse files Browse the repository at this point in the history
Seems to be at least relevant for RSA

See WebAssembly/tool-conventions#223 (comment)
  • Loading branch information
jedisct1 committed Apr 12, 2024
1 parent 7d89277 commit ac9c294
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patches/wasi-config.patch
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ index 46094f59..c3db2695 100644
+ cflags => add("--target=wasm32-wasi"),
+ cxxflags => add("--target=wasm32-wasi"),
+ lib_cppflags => add("-DL_ENDIAN"),
+ bn_ops => "SIXTY_FOUR_BITS",
+ bn_ops => "THIRTY_TWO_BIT",
+ },
+
##### VxWorks for various targets
Expand Down
Binary file modified precompiled/lib/libcrypto.a
Binary file not shown.

0 comments on commit ac9c294

Please sign in to comment.