mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
build: the exceptions here are not useful
they just make the failure hard to spot
This commit is contained in:
parent
4ca46c6b8d
commit
baec7a6b9e
@ -18,7 +18,7 @@ def TARGET_ALIAS(bld, target, alias):
|
|||||||
cache = LOCAL_CACHE(bld, 'TARGET_ALIAS')
|
cache = LOCAL_CACHE(bld, 'TARGET_ALIAS')
|
||||||
if alias in cache:
|
if alias in cache:
|
||||||
print("Target alias %s already set to %s : newalias %s" % (alias, cache[alias], target))
|
print("Target alias %s already set to %s : newalias %s" % (alias, cache[alias], target))
|
||||||
raise
|
sys.exit(1)
|
||||||
cache[alias] = target
|
cache[alias] = target
|
||||||
Build.BuildContext.TARGET_ALIAS = TARGET_ALIAS
|
Build.BuildContext.TARGET_ALIAS = TARGET_ALIAS
|
||||||
|
|
||||||
@ -329,7 +329,7 @@ def build_direct_deps(bld, tgt_list):
|
|||||||
if d == t.sname: continue
|
if d == t.sname: continue
|
||||||
if not d in targets:
|
if not d in targets:
|
||||||
print("Unknown dependency %s in %s" % (d, t.sname))
|
print("Unknown dependency %s in %s" % (d, t.sname))
|
||||||
raise
|
sys.exit(1)
|
||||||
if targets[d] in [ 'EMPTY', 'DISABLED' ]:
|
if targets[d] in [ 'EMPTY', 'DISABLED' ]:
|
||||||
continue
|
continue
|
||||||
if targets[d] == 'SYSLIB':
|
if targets[d] == 'SYSLIB':
|
||||||
@ -823,7 +823,7 @@ def check_project_rules(bld):
|
|||||||
t = bld.name_to_obj(tgt, bld.env)
|
t = bld.name_to_obj(tgt, bld.env)
|
||||||
if t is None:
|
if t is None:
|
||||||
print("Target %s of type %s has no task generator" % (tgt, type))
|
print("Target %s of type %s has no task generator" % (tgt, type))
|
||||||
raise
|
sys.exit(1)
|
||||||
tgt_list.append(t)
|
tgt_list.append(t)
|
||||||
|
|
||||||
add_samba_attributes(bld, tgt_list)
|
add_samba_attributes(bld, tgt_list)
|
||||||
|
Loading…
Reference in New Issue
Block a user