I built webgl using 2017.4.2f2 and got an error
llc: Unknown command line argument '-enable-emscripten-cxx-exceptions'. Try: '/opt/Unity/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten_FastComp_Linux/llc -help'
llc: Did you mean '-enable-emscripten-cpp-exceptions'?
So I check llc version and found that it is version 5.0.0 (the version in 2017.4.0f1 is 3.9.0). the new version not accept ‘-enable-emscripten-cxx-exceptions’.
$ /opt/Unity/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten_FastComp_Linux/llc -version
LLVM (http://llvm.org/):
LLVM version 5.0.0
Optimized build.
Default target: x86_64-unknown-linux-gnu
Host CPU: haswell
Registered Targets:
js - JavaScript (asm.js, emscripten) backend
x86 - 32-bit X86: Pentium-Pro and above
x86-64 - 64-bit X86: EM64T and AMD64