由网友(奔放洋气吴世勋)分享简介:我正在尝试配置我的IntelliJ Clion IDE以使用ns-3。由于ns-3正在使用WAF,这比我想象的要棘手得多,如果有任何建议我会很高兴的推荐答案CLion supports compilation databases,幸运的是,它能够使用clang_compilation_database扩展生成。您需...我正在尝试配置我的IntelliJ Clion IDE以使用ns-3。由于ns-3正在使用WAF,这比我想象的要棘手得多,如果有任何建议我会很高兴的
![WAF详解及WAF绕过](https://p.xsw88.cn/allimgs/daicuo/20230904/6732.png)
推荐答案
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详解及WAF绕过](https://p.xsw88.cn/allimgs/daicuo/20230904/6732.png)
现在您可以调用waf clangdb
;在您的构建目录中将显示一个名为‘Compile_Commands.json’的文件。
相关推荐
最新文章