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
@ -11,10 +11,10 @@
|
|||||||
|
|
||||||
ARDOURSRC=`pwd`
|
ARDOURSRC=`pwd`
|
||||||
cd /tmp
|
cd /tmp
|
||||||
curl https://waf.io/waf-2.0.19.tar.bz2 | tar xj
|
curl https://waf.io/waf-2.0.23.tar.bz2 | tar xj
|
||||||
cd waf-2.0.19
|
cd waf-2.0.23
|
||||||
|
|
||||||
patch -p1 < $ARDOURSRC/tools/patches/waf-str.patch
|
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
|
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):
|
def configure(conf):
|
||||||
conf.load('compiler_c')
|
conf.load('compiler_c')
|
||||||
conf.load('compiler_cxx')
|
conf.load('compiler_cxx')
|
||||||
|
conf.load('clang_compilation_database')
|
||||||
if Options.options.dist_target == 'mingw':
|
if Options.options.dist_target == 'mingw':
|
||||||
conf.load('winres')
|
conf.load('winres')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user