emscripten-core / emscripten-core/emscripten

Any way to set the ENV enviroment variables during compilation?

Open
#22,071 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

**Version of emscripten/emsdk:**
3.1.54

Hi, may I enquire if there is any way to set the environment variables during compilation? I do see the way to set the environments in JavaScript code here https://emscripten.org/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html#environment-variables, but I'm just curious if it could be set up during compilation. I tried to use `set_property` in CMake but it seems can't work.

Thank you very much!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.