1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-21 09:34:19 +03:00

wafsamba: Remove clangdb code which doesn't work

This generates an incomplete database where defines and includes are missing.

Pair-Programmed-With: Andreas Schneider <asn@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Stefan Metzmacher 2022-01-21 17:05:57 +01:00
parent 82a21581c6
commit 85dbc023c3
5 changed files with 5 additions and 19 deletions

View File

@ -2,7 +2,7 @@
import os, sys, re
from waflib import Build, Options, Logs, Utils, Errors, Scripting
from waflib import Build, Options, Logs, Utils, Errors
from waflib.Logs import debug
from waflib.Configure import conf
from waflib import ConfigSet
@ -1168,9 +1168,6 @@ def load_samba_deps(bld, tgt_list):
def check_project_rules(bld):
'''check the project rules - ensuring the targets are sane'''
if bld.__class__.__name__ == "ClangDbContext":
return
loops = {}
inc_loops = {}
@ -1255,13 +1252,6 @@ def check_project_rules(bld):
Logs.info("Project rules pass")
timer = Utils.Timer()
bld.load('clang_compilation_database')
Scripting.run_command('clangdb')
debug("deps: clang_compilation_database: %s" % str(timer))
def CHECK_PROJECT_RULES(bld):
'''enable checking of project targets for sanity'''

View File

@ -465,8 +465,7 @@ def RECURSE(ctx, directory):
'CleanContext',
'InstallContext',
'UninstallContext',
'ListContext',
'ClangDbContext']:
'ListContext']:
return ctx.recurse(relpath)
if 'waflib.extras.compat15' in sys.modules:
return ctx.recurse(relpath)

View File

@ -1,5 +1,4 @@
from waflib import Logs
if bld.__class__.__name__ != "ClangDbContext":
Logs.info("\tSelected embedded Heimdal build")
Logs.info("\tSelected embedded Heimdal build")
bld.RECURSE('third_party/heimdal_build')

View File

@ -1,5 +1,4 @@
from waflib import Logs
if bld.__class__.__name__ != "ClangDbContext":
Logs.info("\tSelected system Heimdal build")
Logs.info("\tSelected system Heimdal build")
bld.RECURSE('third_party/heimdal_build')

View File

@ -1,4 +1,3 @@
from waflib import Logs
if bld.__class__.__name__ != "ClangDbContext":
Logs.info("\tSelected system MIT krb5 libraries, Heimdal use is disabled")
Logs.info("\tSelected system MIT krb5 libraries, Heimdal use is disabled")