Hi,
I’ve downloaded the 2018.2.12f1 using the UnityHub, I am building in headless mode.
After switching from 2018.2.7f1, I cannot build my webgl, I keep gettings:
stdout:
Building build.bc with EmscriptenToolChain
Output directory: /root/projects/dw_bo_unity_positioning/Temp/StagingArea/Data/Native
Cache directory: /root/projects/dw_bo_unity_positioning/Library/il2cpp_cache
il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: error: unknown argument: '-disable-O0-optnone'
ERROR:root:compiler frontend failed to generate LLVM bitcode, halting
Invocation was: Executable: python2
Arguments: "/root/Unity/Hub/Editor/2018.2.12f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/em++" -Wno-unused-value -Wno-invalid-offsetof -nostdinc -fno-strict-overflow -std=c++11 -Oz -DNET_4_0 -DUNITY_JIT -DGC_NOT_DLL -DRUNTIME_IL2CPP -DNDEBUG -I"/root/Unity/Hub/Editor/2018.2.12f1/Editor/Data/il2cpp/libil2cpp" -I"/root/Unity/Hub/Editor/2018.2.12f1/Editor/Data/il2cpp/external/boehmgc/include" -I"/root/projects/dw_bo_unity_positioning/Temp/StagingArea/Data/il2cppOutput" "/root/projects/dw_bo_unity_positioning/Temp/StagingArea/Data/il2cppOutput/Il2CppMetadataUsage.cpp" -o "/root/projects/dw_bo_unity_positioning/Library/il2cpp_cache/D4695DBD1DC7FA3F6C49F7F0436BBF98.o"
at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles (System.Collections.Generic.IEnumerable`1[T] sourceFilesToCompile, Unity.IL2CPP.Building.Statistics.IBuildStatisticsCollector statisticsCollector) [0x001e3] in <c2d6e168c5194bd3a5eb63f84912e96d>:0
at Unity.IL2CPP.Building.CppProgramBuilder.Build (Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x001d0] in <c2d6e168c5194bd3a5eb63f84912e96d>:0
at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner (Unity.IL2CPP.Building.CppProgramBuilder builder, Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00001] in <c2d6e168c5194bd3a5eb63f84912e96d>:0
at il2cpp.Program.DoRun (System.String[] args) [0x00687] in <ed91f4cb3dfc4c70852d8b03a77d76e6>:0
at il2cpp.Program.Run (System.String[] args) [0x00020] in <ed91f4cb3dfc4c70852d8b03a77d76e6>:0
at il2cpp.Program.Main (System.String[] args) [0x00002] in <ed91f4cb3dfc4c70852d8b03a77d76e6>:0
stderr:
Unhandled Exception:
Unity.IL2CPP.Building.BuilderFailedException: error: unknown argument: '-disable-O0-optnone'
ERROR:root:compiler frontend failed to generate LLVM bitcode, halting
Always before the build, the Library and any temporary directory is cleaned, so there is no way earlier builds could affect this one.
Any help will be appreciated.