Emscripten compiler arguments... Where?

I’m currently packaging a game for html5. However when I’m compiling for shipping, I’m getting a few assertion error popups in browsers.

I need to add a few compiler arguments but could not find anywhere in project or Unreal Engine settings. Does anyone know where to write? It’s probably an ini file that I’m not able to find out.

I want to disable closure on emcc… anybody?

Unreal Engine uses a custom build tool - Unreal Build Tool. ( UBT ). You should be able to find all compilation related code in this C# project.

It would be nicer to have another way to set these settings via an ini file or something… So, I need to edit this file and recompile the engine?

Engine/Source/Programs/UnrealBuildTool/HTML5/HTML5ToolChain.cs