cache = LOCAL_CACHE(bld, 'TARGET_ALIAS')
if alias in cache:
print("Target alias %s already set to %s : newalias %s" % (alias, cache[alias], target))
- raise
+ sys.exit(1)
cache[alias] = target
Build.BuildContext.TARGET_ALIAS = TARGET_ALIAS
for t in tgt_list:
obj_sources = getattr(t, 'source', '')
- tpath = os_path_relpath(t.path.abspath(bld.env), t.env['BUILD_DIRECTORY'] + '/default')
+ tpath = os_path_relpath(t.path.abspath(bld.env), t.env.BUILD_DIRECTORY + '/default')
obj_sources = bld.SUBDIR(tpath, obj_sources)
t.samba_source_set = set(TO_LIST(obj_sources))
if d == t.sname: continue
if not d in targets:
print("Unknown dependency %s in %s" % (d, t.sname))
- raise
+ sys.exit(1)
if targets[d] in [ 'EMPTY', 'DISABLED' ]:
continue
if targets[d] == 'SYSLIB':
t = bld.name_to_obj(tgt, bld.env)
if t is None:
print("Target %s of type %s has no task generator" % (tgt, type))
- raise
+ sys.exit(1)
tgt_list.append(t)
add_samba_attributes(bld, tgt_list)