Skip to content

@pumpkin-plugins/static-hermes-runtime API / hermes/toolchain-paths / wasiSdkCompilerPath

Function: wasiSdkCompilerPath() ​

wasiSdkCompilerPath(sdkRoot, compiler, platform?): string

Defined in: hermes/toolchain-paths.ts:47

Return the target compiler path in an installed WASI SDK.

Parameters ​

sdkRoot ​

string

Installed WASI SDK directory.

compiler ​

"wasm32-wasip2-clang" | "wasm32-wasip2-clang++"

C or C++ wasm32-wasip2 compiler name.

platform? ​

Platform = process.platform

Host platform; defaults to the current process platform.

Returns ​

string

The compiler path inside the SDK.

pumpkin-plugins documentation