WASI: Add platform modules

Add minimal platform modules to support toolchain files like those in

* https://github.com/WebAssembly/wasi-sdk

or direct use of `-DCMAKE_SYSTEM_NAME="WASI"`

Fixes: #19223
This commit is contained in:
Jacob Hummer 2024-07-16 00:19:24 -04:00 committed by Brad King
parent 8b90d19630
commit 68cd5281e4
5 changed files with 11 additions and 0 deletions

View File

@ -346,6 +346,7 @@ Variables that Describe the System
/variable/MSVC_VERSION
/variable/MSYS
/variable/UNIX
/variable/WASI
/variable/WIN32
/variable/WINCE
/variable/WINDOWS_PHONE

View File

@ -85,6 +85,7 @@ Value Name
``UNIX_SV`` SCO UnixWare (pre release 7)
``UnixWare`` SCO UnixWare 7
``visionOS`` Apple mixed reality operating system
``WASI`` WebAssembly System Interface
``watchOS`` Apple watch operating system
``Windows`` Windows stationary operating systems
``WindowsCE`` Windows Embedded Compact

7
Help/variable/WASI.rst Normal file
View File

@ -0,0 +1,7 @@
WASI
----
.. versionadded:: 3.31
Set to ``1`` when the target system is WebAssembly System Interface
(:variable:`CMAKE_SYSTEM_NAME` is ``WASI``).

View File

@ -0,0 +1 @@
set(WASI 1)

View File

@ -0,0 +1 @@
# WASI Platform