[0303] 优化 xmake.lua 避免不必要的重新编译#3383
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1. 移除全局作用域重复 add_configfiles 生成 config.h 2. 将 QWKCore/QWKWidgets before_build 中动态添加 includedirs 移至 on_load 3. 将 libmogan/stem before_build 中动态添加 forceincludes 移至 on_load 4. 将 os.vcp 替换为内容对比安全拷贝,避免无条件更新时间戳导致依赖文件重新编译 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
add_configfiles生成 config.hbefore_build中动态添加includedirs移至on_loadbefore_build中动态添加forceincludes移至on_loados.vcp替换为内容对比安全拷贝,避免无条件更新时间戳导致依赖文件重新编译Test plan
xmake b stem首次构建成功xmake b stem第二次构建无重新编译(耗时从 3.5s 降至 0.6s)xmake b stem第三次构建无重新编译xmake clean后完整构建成功🤖 Generated with Claude Code