I am building an UWP and after the VS solution is generated, I get this error when building it.
1>C:\New folder\Il2CppOutputProject\Source\il2cppOutput\Il2CppTypeDefinitions.c(10319): fatal error C1064: compiler limit: token overflowed internal buffer
Any ideas?
1>Building GameAssembly.dll with MsvcWinRtToolChain
1> Msvc Install Version: 15.0
1> Msvc Install SDK Directory: C:\Program Files (x86)\Windows Kits\10
1> Msvc Linker Path: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.21.27702\bin\HostX64\ARM\link.exe
1> Msvc Compiler Path: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.21.27702\bin\HostX64\ARM\cl.exe
1>
1> Output directory: C:\New folder\build\bin\ARM\Debug
1> Cache directory: C:\New folder\build\obj\il2cppOutputProject\ARM\Debug
1>il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: Il2CppTypeDefinitions.c
1>C:\New folder\Il2CppOutputProject\Source\il2cppOutput\Il2CppTypeDefinitions.c(10319): fatal error C1064: compiler limit: token overflowed internal buffer
1>
1>Invocation was: Executable: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.21.27702\bin\HostX64\ARM\cl.exe"
1>
1>Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: Il2CppTypeDefinitions.c
1>C:\New folder\Il2CppOutputProject\Source\il2cppOutput\Il2CppTypeDefinitions.c(10319): fatal error C1064: compiler limit: token overflowed internal buffer
1>
1>Invocation was: Executable: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.21.27702\bin\HostX64\ARM\cl.exe"
1>Arguments: "C:\New folder\Il2CppOutputProject\Source\il2cppOutput\Il2CppTypeDefinitions.c" /nologo /c /bigobj /W3 /Zi /EHs /GR- /Gy /utf-8 /wd4102 /wd4800 /wd4056 /wd4190 /wd4723 /wd4467 /wd4503 /wd4996 /Od /Zc:inline /RTC1 /MDd /DWINDOWS_UWP /DUNITY_UWP /DUNITY_WSA_10_0 /DUNITY_WSA /DUNITY_WINRT /DPLATFORM_WINRT /DNET_4_0 /DUNITY_AOT /DGC_NOT_DLL /DRUNTIME_IL2CPP /DIL2CPP_DEBUG=1 /D_WIN32 /DWIN32 /DWIN32_THREADS /D_WINDOWS /DWINDOWS /D_UNICODE /DUNICODE /D_CRT_SECURE_NO_WARNINGS /D_SCL_SECURE_NO_WARNINGS /D_WINSOCK_DEPRECATED_NO_WARNINGS /DNOMINMAX /D_DEBUG /DDEBUG /DIL2CPP_DEBUG /D__arm__ /DWINDOWS_SDK_BUILD_VERSION=18362 /D__WRL_NO_DEFAULT_LIB__ /DWINAPI_FAMILY=WINAPI_FAMILY_APP /I"C:\New folder\Il2CppOutputProject\IL2CPP\libil2cpp" /I"C:\New folder\Il2CppOutputProject\IL2CPP\libil2cpp" /I"C:\New folder\Il2CppOutputProject\IL2CPP\external\bdwgc\include" /I"C:\New folder\Il2CppOutputProject\Source" /I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.21.27702\include" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\shared" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\winrt" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt" /Fo"C:\New folder\build\obj\il2cppOutputProject\ARM\Debug\09B17862D6E792746F864293F89B66F0.obj" /Fd"C:\New folder\build\obj\il2cppOutputProject\ARM\Debug\09B17862D6E792746F864293F89B66F0.pdb"
1>EnvArg key: PATH value: C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x86;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.21.27702\bin\HostX64\x64
1>
1> at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
1> at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
1> at il2cpp.Program.DoRun(String[] args)
1> at il2cpp.Program.Run(String[] args)
1> at il2cpp.Program.Main(String[] args)
1>Arguments: "C:\New folder\Il2CppOutputProject\Source\il2cppOutput\Il2CppTypeDefinitions.c" /nologo /c /bigobj /W3 /Zi /EHs /GR- /Gy /utf-8 /wd4102 /wd4800 /wd4056 /wd4190 /wd4723 /wd4467 /wd4503 /wd4996 /Od /Zc:inline /RTC1 /MDd /DWINDOWS_UWP /DUNITY_UWP /DUNITY_WSA_10_0 /DUNITY_WSA /DUNITY_WINRT /DPLATFORM_WINRT /DNET_4_0 /DUNITY_AOT /DGC_NOT_DLL /DRUNTIME_IL2CPP /DIL2CPP_DEBUG=1 /D_WIN32 /DWIN32 /DWIN32_THREADS /D_WINDOWS /DWINDOWS /D_UNICODE /DUNICODE /D_CRT_SECURE_NO_WARNINGS /D_SCL_SECURE_NO_WARNINGS /D_WINSOCK_DEPRECATED_NO_WARNINGS /DNOMINMAX /D_DEBUG /DDEBUG /DIL2CPP_DEBUG /D__arm__ /DWINDOWS_SDK_BUILD_VERSION=18362 /D__WRL_NO_DEFAULT_LIB__ /DWINAPI_FAMILY=WINAPI_FAMILY_APP /I"C:\New folder\Il2CppOutputProject\IL2CPP\libil2cpp" /I"C:\New folder\Il2CppOutputProject\IL2CPP\libil2cpp" /I"C:\New folder\Il2CppOutputProject\IL2CPP\external\bdwgc\include" /I"C:\New folder\Il2CppOutputProject\Source" /I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.21.27702\include" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\shared" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\winrt" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt" /Fo"C:\New folder\build\obj\il2cppOutputProject\ARM\Debug\09B17862D6E792746F864293F89B66F0.obj" /Fd"C:\New folder\build\obj\il2cppOutputProject\ARM\Debug\09B17862D6E792746F864293F89B66F0.pdb"
1>EnvArg key: PATH value: C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x86;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.21.27702\bin\HostX64\x64
1>
1> at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
1> at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
1> at il2cpp.Program.DoRun(String[] args)
1> at il2cpp.Program.Run(String[] args)
1> at il2cpp.Program.Main(String[] args)
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command ""C:\New folder\Il2CppOutputProject\\IL2CPP\build\il2cpp.exe" --libil2cpp-static --compile-cpp -architecture=ARMv7 -configuration=Debug -platform=winrt -outputpath="C:\New folder\\build\bin\ARM\Debug\GameAssembly.dll" --data-folder="C:\New folder\\build\bin\ARM\Debug\\" -cachedirectory="C:\New folder\\build\obj\il2cppOutputProject\ARM\Debug\\" -generatedcppdir="C:\New folder\Il2CppOutputProject\\Source" --profiler-report --additional-defines=WINDOWS_UWP --additional-defines=UNITY_UWP --additional-defines=UNITY_WSA_10_0 --additional-defines=UNITY_WSA --additional-defines=UNITY_WINRT --additional-defines=PLATFORM_WINRT -dotnetprofile=unityaot -verbose --map-file-parser="C:\New folder\Il2CppOutputProject\\IL2CPP\MapFileParser\MapFileParser.exe"" exited with code -532462766.
1>Done building project "Il2CppOutputProject.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========