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

更好的xmake clean支持 #5

Open
BernardXiong opened this issue Jan 5, 2025 · 0 comments
Open

更好的xmake clean支持 #5

BernardXiong opened this issue Jan 5, 2025 · 0 comments

Comments

@BernardXiong
Copy link
Member

xmake clean时默认不做太多的事情,但一些场合下确实需要做到很好的clean,从而进行再构建:

target("my_target")
  -- 其他目标配置
  on_clean(function (target)
    os.rmdir("temp_build")
  end)

类似上面的方式,需要在on_clean的时候手工来做更多;

  • rt-thread -> 需要执行scons -c
  • apps,需要对.o文件,二进制文件都进行删除;
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

No branches or pull requests

1 participant