diff options
| author | vkensou <[email protected]> | 2024-03-05 23:56:27 +0800 |
|---|---|---|
| committer | vkensou <[email protected]> | 2024-03-05 23:56:27 +0800 |
| commit | e30f82bc4321d475e2346debc4d2469ad3cc3b05 (patch) | |
| tree | eb9dacef47404accbaada9d0089610c266025778 | |
| parent | 1180d360196457e57920fd0e6d866ddf654c488e (diff) | |
delete config
| -rw-r--r-- | xmake/modules/detect/sdks/find_wasisdk.lua | 3 | ||||
| -rw-r--r-- | xmake/platforms/wasm/xmake.lua | 4 |
2 files changed, 1 insertions, 6 deletions
diff --git a/xmake/modules/detect/sdks/find_wasisdk.lua b/xmake/modules/detect/sdks/find_wasisdk.lua index fee876716..c4feac76f 100644 --- a/xmake/modules/detect/sdks/find_wasisdk.lua +++ b/xmake/modules/detect/sdks/find_wasisdk.lua @@ -73,9 +73,8 @@ function main(sdkdir, opt) end -- find sdk - local sdk = _find_wasisdk(sdkdir or config.get("wasi_sdk") or global.get("wasi_sdk")) + local sdk = _find_wasisdk(sdkdir) if sdk and sdk.sdkdir and sdk.bindir then - config.set("wasi_sdk", sdk.sdkdir, {force = true, readonly = true}) if opt.verbose or option.get("verbose") then cprint("checking for wasi-sdk directory ... ${color.success}%s", sdk.sdkdir) end diff --git a/xmake/platforms/wasm/xmake.lua b/xmake/platforms/wasm/xmake.lua index 840d6f5d4..885233cad 100644 --- a/xmake/platforms/wasm/xmake.lua +++ b/xmake/platforms/wasm/xmake.lua @@ -36,15 +36,11 @@ platform("wasm") { {category = "Emscripten Configuration" } , {nil, "emsdk", "kv", nil, "The emsdk directory" } - , {category = "WASI-SDK Configuration" } - , {nil, "wasi_sdk", "kv", nil, "The wasi-sdk directory" } } , global = { {category = "Emscripten Configuration" } , {nil, "emsdk", "kv", nil, "The emsdk directory" } - , {category = "WASI-SDK Configuration" } - , {nil, "wasi_sdk", "kv", nil, "The wasi-sdk directory" } } } |
