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
checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\bin\HostX64\x64\cl.exe
checking for Microsoft Visual Studio (x64) version ... 2022
checking for zig ... ok
checking for nim ... ok
checkinfo: cannot runv(unzip.exe -v), No such file or directory
checking for unzip ... no
checking for 7z ... D:\scoop\apps\xmake\current\winenv\bin\7z
checking for git ... ok
checkinfo: cannot runv(gzip.exe --version), No such file or directory
checking for gzip ... no
git rev-parse HEAD
checking for cppfront ... no
error: @programdir\core\main.lua:329: @programdir\core\sandbox\modules\import\core\base\task.lua:65: @programdir\core\project\project.lua:915: @programdir\core\project\target.lua:2166: unknown source file: src\hello.h2
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:957]:
[@programdir\core\project\target.lua:2166]: in function 'sourcebatches'
[@programdir\core\project\target.lua:2121]: in function 'sourcekinds'
[@programdir\rules\cppfront\xmake.lua:26]:
[C]: in function 'xpcall'
[@programdir\core\base\utils.lua:275]:
[@programdir\core\project\target.lua:85]: in function '_load_rule'
[@programdir\core\project\target.lua:110]: in function '_load_rules'
[@programdir\core\project\target.lua:122]: in function '_load'
[@programdir\core\project\project.lua:408]: in function '_load_targets'
[@programdir\core\project\project.lua:913]: in function 'targets'
[@programdir\actions\config\main.lua:116]: in function '_check_targets'
[@programdir\actions\config\main.lua:395]:
[C]: in function 'xpcall'
[@programdir\core\base\utils.lua:275]:
[@programdir\core\base\task.lua:491]: in function 'run'
[@programdir\core\sandbox\modules\import\core\base\task.lua:63]: in function 'run'
[@programdir\actions\build\main.lua:191]:
[C]: in function 'xpcall'
[@programdir\core\base\utils.lua:275]:
[@programdir\core\base\task.lua:491]: in function 'run'
[@programdir\core\main.lua:327]: 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 版本
2.8.9
操作系统版本和架构
Windows 11 Version 23H2
描述问题
cppfront 0.7.0版本,使用add_rules("cppfront"),使用.h2文件的时候,提示:error: unknown source file: src\hello.h2,而.h2的文件是cppfront的头文件,目前无法支持。
期待的结果
使用add_rules("cppfront")之后,添加add_files("xxx.h2")应该能使用cppfront生成对应的.h文件
工程配置
附加信息和错误日志
checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\bin\HostX64\x64\cl.exe
checking for Microsoft Visual Studio (x64) version ... 2022
checking for zig ... ok
checking for nim ... ok
checkinfo: cannot runv(unzip.exe -v), No such file or directory
checking for unzip ... no
checking for 7z ... D:\scoop\apps\xmake\current\winenv\bin\7z
checking for git ... ok
checkinfo: cannot runv(gzip.exe --version), No such file or directory
checking for gzip ... no
git rev-parse HEAD
checking for cppfront ... no
error: @programdir\core\main.lua:329: @programdir\core\sandbox\modules\import\core\base\task.lua:65: @programdir\core\project\project.lua:915: @programdir\core\project\target.lua:2166: unknown source file: src\hello.h2
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:957]:
[@programdir\core\project\target.lua:2166]: in function 'sourcebatches'
[@programdir\core\project\target.lua:2121]: in function 'sourcekinds'
[@programdir\rules\cppfront\xmake.lua:26]:
[C]: in function 'xpcall'
[@programdir\core\base\utils.lua:275]:
[@programdir\core\project\target.lua:85]: in function '_load_rule'
[@programdir\core\project\target.lua:110]: in function '_load_rules'
[@programdir\core\project\target.lua:122]: in function '_load'
[@programdir\core\project\project.lua:408]: in function '_load_targets'
[@programdir\core\project\project.lua:913]: in function 'targets'
[@programdir\actions\config\main.lua:116]: in function '_check_targets'
[@programdir\actions\config\main.lua:395]:
[C]: in function 'xpcall'
[@programdir\core\base\utils.lua:275]:
[@programdir\core\base\task.lua:491]: in function 'run'
[@programdir\core\sandbox\modules\import\core\base\task.lua:63]: in function 'run'
[@programdir\actions\build\main.lua:191]:
[C]: in function 'xpcall'
[@programdir\core\base\utils.lua:275]:
[@programdir\core\base\task.lua:491]: in function 'run'
[@programdir\core\main.lua:327]: 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: