You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> xmake pack -vD
[ 50%]: compiling.release build\.gens\test\windows\unity_build\unity_1.cpp
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX64\\x64\\cl.exe" -c -nologo /EHsc -Fobuild\.objs\test\windows\x64\release\build\.gens\test\windows\unity_build\unity_1.cpp.obj build\.gens\test\windows\unity_build\unity_1.cpp
error: @programdir\core\main.lua:329: @programdir\actions\build\main.lua:148: @programdir\modules\async\runjobs.lua:338: @programdir\modules\private\action\build\object.lua:91: @programdir\modules\core\tools\cl.lua:716: unity_1.cpp
C:\Users\Charles\Documents\work\test\xmake\build\.gens\test\windows\unity_build\unity_1.cpp(1): fatal error C1014: too many include files: depth = 1024
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:957]:
[@programdir\modules\core\tools\cl.lua:716]: in function 'catch'
[@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
[@programdir\modules\core\tools\cl.lua:655]:
[C]: in function 'xpcall'
[@programdir\core\base\utils.lua:275]:
[@programdir\core\tool\compiler.lua:278]: in function 'compile'
[@programdir\modules\private\action\build\object.lua:91]: in function 'script'
[@programdir\modules\private\action\build\object.lua:122]: in function 'build_object'
[@programdir\modules\private\action\build\object.lua:147]: in function 'jobfunc'
[@programdir\modules\async\runjobs.lua:256]:
[C]: in function 'xpcall'
[@programdir\core\base\utils.lua:275]: in function 'trycall'
[@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
[@programdir\modules\async\runjobs.lua:238]: in function 'cotask'
[@programdir\core\base\scheduler.lua:406]:
stack traceback:
[C]: in function 'error'
@programdir\core\base\os.lua:957: in function 'os.raiselevel'
(...tail calls...)
@programdir\core\main.lua:329: in upvalue 'cotask'
@programdir\core\base\scheduler.lua:406: in function <@programdir\core\base\scheduler.lua:399>
The text was updated successfully, but these errors were encountered:
Xmake Version
2.8.9
Operating System Version and Architecture
Windows 10 version 22H2
Describe Bug
The build fails with error:
when executing
xmake pack
with unity_build is enabled.Indeed, the unity_1.cpp file content is:
It compiles normally when executing directly
xmake build
or disabling unity_build.Expected Behavior
It should compile.
Project Configuration
Minimal example: xmake.zip
Additional Information and Error Logs
The text was updated successfully, but these errors were encountered: