Program: do not continue executing builder if building a source fails
This commit is contained in:
parent
7249e57951
commit
d0bbc78751
@ -17,6 +17,7 @@ module Rscons
|
||||
def run(target, sources, cache, env, vars = {})
|
||||
# build sources to linkable objects
|
||||
objects = env.build_sources(sources, [env['OBJSUFFIX'], env['LIBSUFFIX']].flatten, cache, vars)
|
||||
return false unless objects
|
||||
ld = if env["LD"]
|
||||
env["LD"]
|
||||
elsif sources.find {|s| s.has_suffix?(env["DSUFFIX"])}
|
||||
|
Loading…
x
Reference in New Issue
Block a user