Halide uses the EM_CONFIG variable in its build script. The reason for this is that we need to ensure that LLVM_ROOT points to the specific version of LLVM being used by the rest of Halide. (Having these out of sync can cause amusingly bad things to happen.) We slurp in the default ~/.emscripten config file and make an altered version (with LLVM_ROOT pointing to the LLVM we are using), so that we can always build with the 'correct' version (ie the one that the rest of Halide is using).
Requiring that ~/.emscripten be edited is problematic as Halide supports multiple versions of LLVM at any one time (currently, v9, v10, and v11/trunk), so this file would need to edited in lockstep with other things in Halide to keep things in step. On Tue, May 19, 2020 at 11:46 AM 'Sam Clegg' via emscripten-discuss < [email protected]> wrote: > emscripten has a feature where you can avoid using a config file > completely and instead pass a python literal in the EM_CONFIG > environment variable or `--em-config` command line. > > e.g. `emcc --em-config="<python code>` > > As part of routine cleanup I'm hoping to be able to remove this > feature and allow the code to depend on the existence of a config > file on disk. > > I'm not imagining there are any users of this feature, and we can > make it into warning a few releases to confirm this. > > Does anyone know of any users of this feature? > > cheers, > sam > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/emscripten-discuss/CAL_va28seE50BNe4BKJ4cFzoQNNZPE6xbFFwDvXQSdWfiF2WAA%40mail.gmail.com > <https://groups.google.com/d/msgid/emscripten-discuss/CAL_va28seE50BNe4BKJ4cFzoQNNZPE6xbFFwDvXQSdWfiF2WAA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAM%3DdnveGTKtEqGWue_qyUMjdyLdGXZbXEm8m4fhPjreRgd4tGQ%40mail.gmail.com.
