We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
2.7.6
Linux fedora 6.1.6-200.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Jan 14 16:55:06 UTC 2023 x86_64 GNU/Linux
$ cat /home/demo/project/demo/xmake_build_test/a/.xmake/linux/x86_64/tmp/230206/_E2BB99FB47614 29EB2F157B92513DE30 { files = { "src/config.h.in" } }%
记录了依赖文件,但是修改时间后(过了一天)
dependfile: /home/demo/project/demo/xmake_build_test/a/.xmake/linux/x86_64/tmp/230207/_E2BB99F B4761429EB2F157B92513DE30 dependinfo { }
可见,将要读取的临时文件并不存在,因为路径拼接根据时间而发生了变化。
xmake/xmake/core/project/project.lua
Line 1159 in f3b7dad
Line 1183 in f3b7dad
dependinfo 会被传递到这里
xmake/xmake/modules/core/project/depend.lua
Lines 188 to 193 in f3b7dad
Lines 85 to 90 in f3b7dad
移除日期?
No response
The text was updated successfully, but these errors were encountered:
fix dependfile in configfiles #3321
20596ff
日期是不能移的,tmpdir 设置按天分离,便于定期清理,每天首次运行 后台进程会清理一次前天的临时文件,避免磁盘空间越占越多。。
根本问题是 depend.on_changed 在 configfiles 生成里面,我没加 dependfile 设置,所以默认用了 tmpfile 作为 dependfile
Line 179 in c7b76a4
只要外面设置上固定 dependfile 路径,避免走到 tmpfile 就行了。。
我改进了下,再试试,xmake update -s dev
xmake update -s dev
Sorry, something went wrong.
使用修改时间的方式验证,已经没有重新编译的问题了。
No branches or pull requests
Xmake 版本
2.7.6
操作系统版本和架构
Linux fedora 6.1.6-200.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Jan 14 16:55:06 UTC 2023 x86_64 GNU/Linux
描述问题
记录了依赖文件,但是修改时间后(过了一天)
可见,将要读取的临时文件并不存在,因为路径拼接根据时间而发生了变化。
xmake/xmake/core/project/project.lua
Line 1159 in f3b7dad
xmake/xmake/core/project/project.lua
Line 1183 in f3b7dad
dependinfo 会被传递到这里
xmake/xmake/modules/core/project/depend.lua
Lines 188 to 193 in f3b7dad
xmake/xmake/modules/core/project/depend.lua
Lines 85 to 90 in f3b7dad
期待的结果
移除日期?
工程配置
No response
附加信息和错误日志
No response
The text was updated successfully, but these errors were encountered: