diff --git a/src/apis/emscripten/env.rs b/src/apis/emscripten/env.rs index 3e9406308..f10bd8f77 100644 --- a/src/apis/emscripten/env.rs +++ b/src/apis/emscripten/env.rs @@ -106,3 +106,7 @@ pub extern "C" fn _getpagesize() -> u32 { debug!("emscripten::_getpagesize"); 16384 } + +pub extern "C" fn ___build_environment(environ: c_int) { + debug!("emscripten::___build_environment {}", environ); +} diff --git a/src/apis/emscripten/mod.rs b/src/apis/emscripten/mod.rs index 9a81eea65..03e0308b8 100644 --- a/src/apis/emscripten/mod.rs +++ b/src/apis/emscripten/mod.rs @@ -118,6 +118,7 @@ pub fn generate_emscripten_env<'a, 'b>() -> ImportObject<&'a str, &'b str> { import_object.set("env", "_getenv", ImportValue::Func(env::_getenv as _)); import_object.set("env", "_getpwnam", ImportValue::Func(env::_getpwnam as _)); import_object.set("env", "_getgrnam", ImportValue::Func(env::_getgrnam as _)); + import_object.set("env", "___buildEnvironment", ImportValue::Func(env::___build_environment as _)); // Errno import_object.set( "env",