From 968290c69731cd34bfa82debc8e4ab71d2f63006 Mon Sep 17 00:00:00 2001 From: MoustaphaSaad Date: Thu, 20 Jun 2024 21:25:51 +0300 Subject: [PATCH 1/2] add Emscripten to compatible operating systems list --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b4fff87c4d..725df185ee 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ At the time of this writing, LibreSSL is known to build and work on: * Solaris 11 and later * Mac OS X (tested with 10.8 and later) * AIX (5.3 and later) +* Emscripten (3.1.44 and later) LibreSSL also supports the following Windows environments: From c231e3bc82370637c0bd17300b7c6fc66bd0b2fd Mon Sep 17 00:00:00 2001 From: MoustaphaSaad Date: Thu, 20 Jun 2024 21:27:12 +0300 Subject: [PATCH 2/2] add note about using emcmake with Emscripten in specific systems section --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 725df185ee..598188cc27 100644 --- a/README.md +++ b/README.md @@ -159,6 +159,18 @@ LibreSSL builds against relatively recent versions of [MinGW-w64](https://www.mi confused with the original mingw.org project. MinGW-w64 3.2 or later should work. See [README.mingw.md](README.mingw.md) for more information. +### Emscripten + +When configuring LibreSSL for use with Emscripten, make sure to prepend +`emcmake` to your `cmake` configuration command. Once configured, you can +proceed with your usual `cmake` commands. For example: + +```sh +emcmake cmake . -Bbuild +cmake --build build --config Release +ctest --test-dir build -C Release --output-on-failure +``` + # Using LibreSSL ## CMake