mirror of
https://github.com/kp2pml30/ya-build.git
synced 2026-02-17 00:14:42 +04:00
allow multiple files for target_command
This commit is contained in:
parent
224e0c4506
commit
45f6d5fdf6
1 changed files with 4 additions and 1 deletions
5
ya-build
5
ya-build
|
|
@ -162,7 +162,10 @@ module DefaultTargets
|
|||
class Command < Target
|
||||
attr_reader :output_file
|
||||
def initialize(output_file, dependencies, cwd, commands, depfile, pool, env)
|
||||
super(outputs: [output_file], inputs: dependencies, rule: 'CUSTOM_COMMAND')
|
||||
if not output_file.kind_of? Array
|
||||
output_file = [output_file]
|
||||
end
|
||||
super(outputs: output_file, inputs: dependencies, rule: 'CUSTOM_COMMAND')
|
||||
@env = env
|
||||
@depfile = depfile
|
||||
@output_file = output_file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue