emscripten
emscripten copied to clipboard
Error while compiling static library with emscripten
Please include the following in your bug report:
Version of emscripten/emsdk: 3.1.59
I am getting following error while trying to compile a library with emscripten in windows to produce *.a files.
D:\Gits\standardLib\build>emmake make make: C:\mingw64\bin\mingw32-make.EXE [ 0%] Building CXX object CMakeFiles/standardLib.dir/src/absolute_soap/modules/main.cpp.o clang++: error: unsupported option '-march=' for target 'wasm32-unknown-emscripten' mingw32-make.EXE[2]: *** [CMakeFiles\standardLib.dir\build.make:76: CMakeFiles/standardLib.dir/src/absolute_soap/modules/main.cpp.o] Error 1 mingw32-make.EXE[1]: *** [CMakeFiles\Makefile2:120: CMakeFiles/standardLib.dir/all] Error 2 mingw32-make.EXE: *** [Makefile:145: all] Error 2 emmake: error: 'C:\mingw64\bin\mingw32-make.EXE' failed (returned 2)