-
-
Notifications
You must be signed in to change notification settings - Fork 816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xmake 执行时报错 #4892
Comments
Title: xmake reports an error when executing |
估计是某次修改引入,先试试 |
It is probably introduced by a certain modification. Try |
贴完整 |
Post the complete |
大概知道了 是由 add_headerfiles("src/*.h", {prefixdir = "xxx"}) 导致的, 只要 不传prefixdir 就行, |
compile_commands 这个 sort 我记得 dev 上已经修了才对。。可以更新到 dev 后试下。。
|
确实没问题了 谢谢 |
I remember that compile_commands sort has been fixed on dev. . You can try it after updating to dev. .
|
It's really no problem. Thank you. |
Xmake Version
2.8.9
Operating System Version and Architecture
macOS 14.3.1 (23D60)
Describe Bug
执行xmake时报错:
error: @programdir/core/main.lua:329: attempt to compare string with table
stack traceback:
[C]: in function 'sort'
[@programdir/rules/plugin/compile_commands/xmake.lua:61]: in function 'buildscript'
[@programdir/actions/build/main.lua:97]: in function '_do_project_rules'
[@programdir/actions/build/main.lua:144]: in function 'catch'
[@programdir/core/sandbox/modules/try.lua:123]: in function 'try'
[@programdir/actions/build/main.lua:118]: in function 'build_targets'
[@programdir/actions/build/main.lua:201]:
[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>
Expected Behavior
Project Configuration
Additional Information and Error Logs
The text was updated successfully, but these errors were encountered: