Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document ​libwasmvmstatic_darwin.a support #528

Merged
merged 1 commit into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,17 @@ which for example excludes all 32 bit systems.
| Linux (musl) | aarch64 | shared | 🚫​ | Possible but not needed |
| Linux (musl) | aarch64 | static | ✅​libwasmvm_muslc.aarch64.a | |
| macOS | x86_64 | shared | ✅​libwasmvm.dylib | Fat/universal library with multiple archs ([#294]) |
| macOS | x86_64 | static | 🚫​ | |
| macOS | x86_64 | static | ✅​libwasmvmstatic_darwin.a | Fat/universal library with multiple archs ([#407]) |
| macOS | aarch64 | shared | ✅​libwasmvm.dylib | Fat/universal library with multiple archs ([#294]) |
| macOS | aarch64 | static | 🚫​ | |
| macOS | aarch64 | static | ✅​libwasmvmstatic_darwin.a | Fat/universal library with multiple archs ([#407]) |
| Windows (mingw) | x86_64 | shared | 🏗​wasmvm.dll | Shared library linking not working on Windows ([#389]) |
| Windows (mingw) | x86_64 | static | 🚫​ | Unclear if this can work using a cross compiler; needs research on .lib (MSVC toolchain) vs. .a (GNU toolchain). ([#389]) |
| Windows (mingw) | aarch64 | shared | 🚫​ | Shared library linking not working on Windows ([#389]) |
| Windows (mingw) | aarch64 | static | 🚫​ | Unclear if this can work using a cross compiler; needs research on .lib (MSVC toolchain) vs. .a (GNU toolchain). ([#389]) |

[#294]: https://github.com/CosmWasm/wasmvm/pull/294
[#389]: https://github.com/CosmWasm/wasmvm/issues/389
[#407]: https://github.com/CosmWasm/wasmvm/issues/407

<!-- AUTO GENERATED BY libwasmvm_builds.py END -->

Expand Down
16 changes: 10 additions & 6 deletions docs/libwasmvm_builds.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Run python3 docs/libwasmvm_builds.py and paste output into
# README.md
# In the repo root run python3 docs/libwasmvm_builds.py
# and paste output into README.md

oss = ["Linux (glibc)", "Linux (musl)", "macOS", "Windows (mingw)"]
cpus = ["x86_64", "aarch64"]
Expand All @@ -18,10 +18,11 @@ def wasmer22_supported(os, cpu, build_type):
return UNDER_CONSTRUCTION + "wasmvm.dll"
else:
return UNSUPPORTED
if os == "macOS" and build_type == "static":
return UNSUPPORTED
if os == "macOS" and build_type == "shared":
return SUPPORTED + "libwasmvm.dylib"
if os == "macOS":
if build_type == "static":
return SUPPORTED + "libwasmvmstatic_darwin.a"
if build_type == "shared":
return SUPPORTED + "libwasmvm.dylib"
if os == "Linux (musl)":
if build_type == "static":
if cpu == "x86_64":
Expand All @@ -47,6 +48,8 @@ def get_note(os, cpu, build_type):
return "Possible but not needed"
if os == "macOS" and build_type == "shared":
return "Fat/universal library with multiple archs ([#294])"
if os == "macOS" and build_type == "static":
return "Fat/universal library with multiple archs ([#407])"
if os == "Windows (mingw)" and build_type == "shared":
return "Shared library linking not working on Windows ([#389])"
if os == "Windows (mingw)" and build_type == "static":
Expand All @@ -57,6 +60,7 @@ def get_links():
return """
[#294]: https://github.com/CosmWasm/wasmvm/pull/294
[#389]: https://github.com/CosmWasm/wasmvm/issues/389
[#407]: https://github.com/CosmWasm/wasmvm/issues/407
"""

print("<!-- AUTO GENERATED BY libwasmvm_builds.py START -->")
Expand Down
Loading