Skip to content

Commit

Permalink
Merge pull request #528 from CosmWasm/document-✅​libwasmvmstatic_darw…
Browse files Browse the repository at this point in the history
…in.a

Document ​libwasmvmstatic_darwin.a support
  • Loading branch information
webmaster128 committed Mar 27, 2024
2 parents e074d03 + 7c3f940 commit f93232c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
5 changes: 3 additions & 2 deletions README.md
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
@@ -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

0 comments on commit f93232c

Please sign in to comment.