mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Prepare waf update to 2.0.23 and enable 'clang_compilation_database'
This enables the generation of build/compile_commands.json which is a compilation database recognized by some IDE/editors to provide compiler quality linting. To name a few: - Visual Studio Code - VIM (with ALE plugin)
This commit is contained in:
parent
4f5779e67d
commit
b8e1cd53ce
2 changed files with 4 additions and 3 deletions
|
|
@ -11,10 +11,10 @@
|
|||
|
||||
ARDOURSRC=`pwd`
|
||||
cd /tmp
|
||||
curl https://waf.io/waf-2.0.19.tar.bz2 | tar xj
|
||||
cd waf-2.0.19
|
||||
curl https://waf.io/waf-2.0.23.tar.bz2 | tar xj
|
||||
cd waf-2.0.23
|
||||
|
||||
patch -p1 < $ARDOURSRC/tools/patches/waf-str.patch
|
||||
|
||||
./waf-light -v --make-waf --tools=misc,doxygen,$ARDOURSRC/tools/autowaf.py,$ARDOURSRC/tools/misc.py --prelude=''
|
||||
./waf-light -v --make-waf --tools=misc,doxygen,clang_compilation_database,$ARDOURSRC/tools/autowaf.py,$ARDOURSRC/tools/misc.py --prelude=''
|
||||
cp ./waf $ARDOURSRC/waf
|
||||
|
|
|
|||
1
wscript
1
wscript
|
|
@ -933,6 +933,7 @@ def sub_config_and_use(conf, name, has_objects = True):
|
|||
def configure(conf):
|
||||
conf.load('compiler_c')
|
||||
conf.load('compiler_cxx')
|
||||
conf.load('clang_compilation_database')
|
||||
if Options.options.dist_target == 'mingw':
|
||||
conf.load('winres')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue