-
-
Notifications
You must be signed in to change notification settings - Fork 774
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 f -c -P . 清除配置报错 #4857
Comments
Title: xmake f -c -P . Clear configuration error Xmake version2.8.8 Operating system version and architecturewin10 Describe the problemThe project can be compiled normally, but xmake f -c -P . clears the configuration and reports an error Expected resultsClear normally Project configurationxmake.lua: xmake.lua under csdk_root: xmake.lua under bootloader target("driver",function()
end) Among them, the project_dir in set_targetdir(project_dir.."/build/bootloader_libdriver") will report an error. The global variable description field should be used normally, and the compilation is normal. Only xmake f -c -P . error is reported. Additional information and error logs |
给下完整工程,好歹 code 贴贴好么,这么乱 怎么看 |
Could you please post the complete project? Can you please post the code? It’s so messy. What do you think? |
已修改 |
already edited |
无法复现 add_rules("mode.debug", "mode.release")
foo=os.scriptdir()
target("foo")
set_kind("static")
add_files("src/foo.cpp")
includes("src") src/xmake.lua includes("bar") src/bar/xmake.lua target("test8", function ()
set_kind("binary")
add_deps("foo")
add_files("src/main.cpp")
print(foo)
end) ruki-2:test8 ruki$ xmake
/private/tmp/test8
/private/tmp/test8 |
给个完整可复现的最小 example |
Give a complete and reproducible minimal example |
仓库: https://gitee.com/openLuat/luatos-soc-2024 在 luatos-soc-2024\project\test 目录下执行 xmake -P . 可正常编译 |
Warehouse: https://gitee.com/openLuat/luatos-soc-2024 Execute xmake -P in the luatos-soc-2024\project\test directory. It can be compiled normally. |
再试试, |
Try again, |
可以了 |
That's it |
Xmake 版本
2.8.8
操作系统版本和架构
win10
描述问题
工程能正常编译,但是xmake f -c -P . 清除配置报错
期待的结果
正常清除
工程配置
xmake.lua :
csdk_root下xmake.lua:
bootloader下 xmake.lua
其中 ‘set_targetdir(project_dir.."/build/bootloader_libdriver")’ 中的 project_dir就会报错,全局变量描述域应该正常使用的,而且编译是正常的,只有 xmake f -c -P . 报错
附加信息和错误日志
The text was updated successfully, but these errors were encountered: