如何将Cion设置为使用WAF作为构建系统 [英] How to setup CLion to use waf as build system
本文介绍了如何将Cion设置为使用WAF作为构建系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
推荐答案
CLion supports compilation databases,幸运的是,它能够使用clang_compilation_database
扩展生成。
您需要在配置和选项步骤中加载它;即如下所示:
def options(ctx):
# Assuming you just copied the script into a directory called tools
ctx.load('clang_compilation_database', tooldir='tools')
# ...
def configure(ctx):
ctx.load('clang_compilation_database', tooldir='tools')
# ...
现在您可以调用waf clangdb
;在您的构建目录中将显示一个名为‘Compile_Commands.json’的文件。
这篇关于如何将Cion设置为使用WAF作为构建系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文