Closed waozixyz closed 1 year ago
Yes possibly. By setting the clang.path/clang.cpp.path and passC options to the emscripten directory in the config.nims file. Warning not tested:
const EmscriptenToolchain = "/opt/emscripten-llvm/"
switch("clang.path", EmscriptenToolchain / "bin")
switch("clang.cpp.path", EmscriptenToolchain / "bin")
switch("passC", "-I/usr/lib/emscripten/system/include/emscripten/")
thanks, actually i just had to add
import os
to the config file and then the error stopped
Hey i get the following issue when i try to build for web:
do you know what i could try doing differently? is it possible to directly specify the emsdk/upstream/emscripten folder in the build directly?