[libassert] add wasm support (#52675)

This commit is contained in:
Nick D'Ademo 2026-07-02 10:24:28 +08:00 committed by GitHub
parent f00343ae06
commit 1f2f9fbd26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff --git a/src/common.hpp b/src/common.hpp
--- a/src/common.hpp
+++ b/src/common.hpp
@@ -48,7 +48,7 @@
#if defined(_WIN32)
#undef IS_WINDOWS
#define IS_WINDOWS 1
-#elif defined(__linux)
+#elif defined(__linux) || defined(__EMSCRIPTEN__)
#undef IS_LINUX
#define IS_LINUX 1
#elif defined(__APPLE__)

View File

@ -4,6 +4,8 @@ vcpkg_from_github(
REF "v${VERSION}"
SHA512 877f7ddac1b3ffa77d6c30b9aa4c6bf2a32bd3089b5348b75b4f52ef474cf6ee1f754bab5f0396e3ee3df83f9a438a5154c0fefce683c479b2f3a8adaef3c0a7
HEAD_REF main
PATCHES
emscripten-platform.diff
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)

View File

@ -1,6 +1,7 @@
{
"name": "libassert",
"version": "2.2.1",
"port-version": 1,
"description": "The most over-engineered C++ assertion library",
"homepage": "https://github.com/jeremy-rifkin/libassert",
"license": "MIT",

View File

@ -4774,7 +4774,7 @@
},
"libassert": {
"baseline": "2.2.1",
"port-version": 0
"port-version": 1
},
"libassuan": {
"baseline": "3.0.2",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "3075f9e8094dde8d0353e700bff505cea81495c6",
"version": "2.2.1",
"port-version": 1
},
{
"git-tree": "4ab5a1843ee05a1535282abfb68f84edb62265d6",
"version": "2.2.1",