我们可以通过 xmake clean 命令来清理构建过程中生成的临时文件。
$ xmake clean [options] [target]
如果不指定目标名,默认清理所有目标。
$ xmake clean
我们也可以指定清理特定的目标。
$ xmake clean test
默认情况下,xmake clean 仅仅清理当前构建模式(例如:debug/release)和架构下生成的对象文件和目标文件。
如果想要清理所有编译模式、所有架构生成的文件,可以执行:
$ xmake clean -a
或者
$ xmake clean --all
如果想要清理配置缓存(重新执行检测和配置),可以执行:
$ xmake f -c