change wasi env vars

This commit is contained in:
Dongdong Zhou 2022-08-25 13:18:12 +01:00
parent 6150129f50
commit a78f8b9989
1 changed files with 2 additions and 2 deletions

View File

@ -315,8 +315,8 @@ pub fn start_volt(
let stderr = Arc::new(RwLock::new(WasiPipe::new()));
let wasi = WasiCtxBuilder::new()
.inherit_env()?
.env("OS", std::env::consts::OS)?
.env("ARCH", std::env::consts::ARCH)?
.env("VOLT_OS", std::env::consts::OS)?
.env("VOLT_ARCH", std::env::consts::ARCH)?
.env(
"VOLT_URI",
Url::from_directory_path(volt_path)