Skip to content
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

Support for incremental compilation and parse header file deps for keil/armcc/armclang #2697

Merged
merged 5 commits into from
Aug 20, 2022

Conversation

as564335sa
Copy link
Contributor

@as564335sa as564335sa commented Aug 20, 2022

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

#2686

@waruqi
Copy link
Member

waruqi commented Aug 20, 2022

armclang 那个不是那么改的,其实是 has_flags 没生效导致,其他没啥 你可以先搞 armcc ,armclang 暂时不用管,后面我看下

@waruqi waruqi merged commit db893f0 into xmake-io:dev Aug 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants