diff options
author | Jacob Hummer <jcbhmr@outlook.com> | 2024-07-16 04:19:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-07-16 16:28:19 (GMT) |
commit | 68cd5281e4c5ea638e3853124c6b5c663de7878b (patch) | |
tree | 627f93d8a28b8a0d1bfadb2c1db41fe417df32c0 /Help | |
parent | 8b90d19630b0a80eed34df340f45eb1d61aff0ca (diff) | |
download | CMake-68cd5281e4c5ea638e3853124c6b5c663de7878b.zip CMake-68cd5281e4c5ea638e3853124c6b5c663de7878b.tar.gz CMake-68cd5281e4c5ea638e3853124c6b5c663de7878b.tar.bz2 |
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
Diffstat (limited to 'Help')
-rw-r--r-- | Help/manual/cmake-variables.7.rst | 1 | ||||
-rw-r--r-- | Help/variable/CMAKE_SYSTEM_NAME.rst | 1 | ||||
-rw-r--r-- | Help/variable/WASI.rst | 7 |
3 files changed, 9 insertions, 0 deletions
diff --git a/Help/manual/cmake-variables.7.rst b/Help/manual/cmake-variables.7.rst index 1abdd62..780ec9f 100644 --- a/Help/manual/cmake-variables.7.rst +++ b/Help/manual/cmake-variables.7.rst @@ -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 diff --git a/Help/variable/CMAKE_SYSTEM_NAME.rst b/Help/variable/CMAKE_SYSTEM_NAME.rst index e9ffec4..681ee03 100644 --- a/Help/variable/CMAKE_SYSTEM_NAME.rst +++ b/Help/variable/CMAKE_SYSTEM_NAME.rst @@ -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 diff --git a/Help/variable/WASI.rst b/Help/variable/WASI.rst new file mode 100644 index 0000000..eacfc3f --- /dev/null +++ b/Help/variable/WASI.rst @@ -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``). |