Experimental support for emitting compile_commands.json from waf

This commit is contained in:
Jacob Dufault 2017-04-25 19:57:27 -07:00
parent 839f3d9968
commit e13d161c62

View File

@ -54,6 +54,7 @@ def options(opt):
def configure(conf): def configure(conf):
conf.load('compiler_cxx') conf.load('compiler_cxx')
conf.check(header_name='stdio.h', features='cxx cxxprogram', mandatory=True) conf.check(header_name='stdio.h', features='cxx cxxprogram', mandatory=True)
conf.load('clang_compilation_database', tooldir='.')
# Download and save the compressed tarball as |compressed_file_name|. # Download and save the compressed tarball as |compressed_file_name|.
if not os.path.isfile(CLANG_TARBALL_LOCAL_PATH): if not os.path.isfile(CLANG_TARBALL_LOCAL_PATH):