Skip to content

Commit

Permalink
Add a proper wasi preset
Browse files Browse the repository at this point in the history
  • Loading branch information
abique committed Nov 22, 2024
1 parent 412afed commit c1c2ec8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@
"hidden": true,
"toolchainFile": "cmake/toolchains/wasm-clang-linux.cmake"
},
{
"name": "wasi-linux",
"hidden": true,
"toolchainFile": "/opt/wasi-sdk/share/cmake/wasi-sdk-pthread.cmake"
},
{
"name": "emscripten-linux",
"hidden": true,
Expand Down Expand Up @@ -98,6 +103,14 @@
"base", "headless", "wasm-clang-linux"
]
},
{
"name": "ninja-wasi-headless",
"description": "Ninja + System Libraries + Headless / WASM",
"binaryDir": "${sourceDir}/builds/${presetName}",
"inherits": [
"base", "headless", "wasi-linux"
]
},
{
"name": "ninja-emscripten-headless",
"description": "Ninja + System Libraries + Headless / WASM",
Expand Down Expand Up @@ -134,6 +147,12 @@
"description": "Build using Ninja and system libraries (headless)",
"configurePreset": "ninja-wasm-headless"
},
{
"name": "ninja-wasi-headless",
"inherits": "base",
"description": "Build using Ninja and system libraries (headless)",
"configurePreset": "ninja-wasi-headless"
},
{
"name": "ninja-emscripten-headless",
"inherits": "base",
Expand Down

0 comments on commit c1c2ec8

Please sign in to comment.