mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-24 03:02:46 +08:00
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:
@@ -346,6 +346,7 @@ Variables that Describe the System
|
|||||||
/variable/MSVC_VERSION
|
/variable/MSVC_VERSION
|
||||||
/variable/MSYS
|
/variable/MSYS
|
||||||
/variable/UNIX
|
/variable/UNIX
|
||||||
|
/variable/WASI
|
||||||
/variable/WIN32
|
/variable/WIN32
|
||||||
/variable/WINCE
|
/variable/WINCE
|
||||||
/variable/WINDOWS_PHONE
|
/variable/WINDOWS_PHONE
|
||||||
|
@@ -85,6 +85,7 @@ Value Name
|
|||||||
``UNIX_SV`` SCO UnixWare (pre release 7)
|
``UNIX_SV`` SCO UnixWare (pre release 7)
|
||||||
``UnixWare`` SCO UnixWare 7
|
``UnixWare`` SCO UnixWare 7
|
||||||
``visionOS`` Apple mixed reality operating system
|
``visionOS`` Apple mixed reality operating system
|
||||||
|
``WASI`` WebAssembly System Interface
|
||||||
``watchOS`` Apple watch operating system
|
``watchOS`` Apple watch operating system
|
||||||
``Windows`` Windows stationary operating systems
|
``Windows`` Windows stationary operating systems
|
||||||
``WindowsCE`` Windows Embedded Compact
|
``WindowsCE`` Windows Embedded Compact
|
||||||
|
7
Help/variable/WASI.rst
Normal file
7
Help/variable/WASI.rst
Normal 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``).
|
1
Modules/Platform/WASI-Initialize.cmake
Normal file
1
Modules/Platform/WASI-Initialize.cmake
Normal file
@@ -0,0 +1 @@
|
|||||||
|
set(WASI 1)
|
1
Modules/Platform/WASI.cmake
Normal file
1
Modules/Platform/WASI.cmake
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# WASI Platform
|
Reference in New Issue
Block a user