Support for incremental compilation and parse header file deps for keil/armcc/armclang #2697
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.
实现mdk armcc/armclang的头文件依赖解析和增量编译;根据大佬的提示勉强修改了下代码,
1、armcc的.d生成并解析,解析部分摘抄了gcc.lua的.d文件解析;
2、armclang摘抄了gcc的代码,代码是一样的,只是has_flags检测不通过,稍修改了一下,解析部分直接使用gcc的解析;
两个编译器都没有实现has_flags检测功能,我也不知道具体命令怎么实现,所以把这部分代码屏蔽了,直接将标识置为了true;
水平有限,代码可能不严谨,本地测试功能是实现了,大佬能帮完善下就更好了
#2686