pass env to Cache#up_to_date?() and #register_build() instead of user_deps
This commit is contained in:
1 parent
1868193b54
commit
f8af0630b0
8 files changed
+65
-46
No files matched your search
@@ -22,12 +22,12 @@ module Rscons
|
||||
# Check if the cache is up to date for the target and if not execute the
|
||||
# build command.
|
||||
# Return the name of the target or false on failure.
|
||||
def standard_build(short_cmd_string, target, command, sources, user_deps, env, cache)
|
||||
unless cache.up_to_date?(target, command, sources, user_deps)
|
||||
def standard_build(short_cmd_string, target, command, sources, env, cache)
|
||||
unless cache.up_to_date?(target, command, sources, env)
|
||||
cache.mkdir_p(File.dirname(target))
|
||||
FileUtils.rm_f(target)
|
||||
return false unless env.execute(short_cmd_string, command)
|
||||
cache.register_build(target, command, sources, user_deps)
|
||||
cache.register_build(target, command, sources, env)
|
||||
end
|
||||
target
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user