diff --git a/ports/libassert/emscripten-platform.diff b/ports/libassert/emscripten-platform.diff new file mode 100644 index 0000000000..c4b403c89d --- /dev/null +++ b/ports/libassert/emscripten-platform.diff @@ -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__) diff --git a/ports/libassert/portfile.cmake b/ports/libassert/portfile.cmake index 7cb29a0217..4e92b0cd42 100644 --- a/ports/libassert/portfile.cmake +++ b/ports/libassert/portfile.cmake @@ -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) diff --git a/ports/libassert/vcpkg.json b/ports/libassert/vcpkg.json index b1dbda3ef8..ff825ac86b 100644 --- a/ports/libassert/vcpkg.json +++ b/ports/libassert/vcpkg.json @@ -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", diff --git a/versions/baseline.json b/versions/baseline.json index d477716868..761c553e18 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -4774,7 +4774,7 @@ }, "libassert": { "baseline": "2.2.1", - "port-version": 0 + "port-version": 1 }, "libassuan": { "baseline": "3.0.2", diff --git a/versions/l-/libassert.json b/versions/l-/libassert.json index f50a2a1475..5e233fba23 100644 --- a/versions/l-/libassert.json +++ b/versions/l-/libassert.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "3075f9e8094dde8d0353e700bff505cea81495c6", + "version": "2.2.1", + "port-version": 1 + }, { "git-tree": "4ab5a1843ee05a1535282abfb68f84edb62265d6", "version": "2.2.1",