From 7c3f940d88357ed5df2a41c8a5adf262af5106d2 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Wed, 27 Mar 2024 12:33:04 +0100 Subject: [PATCH] =?UTF-8?q?Document=20=E2=80=8Blibwasmvmstatic=5Fdarwin.a?= =?UTF-8?q?=20support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 +++-- docs/libwasmvm_builds.py | 16 ++++++++++------ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 912d6b222..d164b846f 100644 --- a/README.md +++ b/README.md @@ -124,9 +124,9 @@ 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]) | @@ -134,6 +134,7 @@ which for example excludes all 32 bit systems. [#294]: https://github.com/CosmWasm/wasmvm/pull/294 [#389]: https://github.com/CosmWasm/wasmvm/issues/389 +[#407]: https://github.com/CosmWasm/wasmvm/issues/407 diff --git a/docs/libwasmvm_builds.py b/docs/libwasmvm_builds.py index 34ffb918d..ed7023d05 100644 --- a/docs/libwasmvm_builds.py +++ b/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"] @@ -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": @@ -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": @@ -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("")