bugfix: Object and SharedObject should respect vars when checking source suffixes
This commit is contained in:
parent
ed5d6e9e49
commit
aa192d7567
@ -92,7 +92,7 @@ module Rscons
|
||||
'_DEPFILE' => Rscons.set_suffix(target, env.expand_varref("${DEPFILESUFFIX}", vars)),
|
||||
})
|
||||
com_prefix = KNOWN_SUFFIXES.find do |compiler, suffix_var|
|
||||
sources.first.end_with?(*env.expand_varref("${#{suffix_var}}"))
|
||||
sources.first.end_with?(*env.expand_varref("${#{suffix_var}}", vars))
|
||||
end.tap do |v|
|
||||
v.nil? and raise "Error: unknown input file type: #{sources.first.inspect}"
|
||||
end.first
|
||||
|
@ -70,7 +70,7 @@ module Rscons
|
||||
'_DEPFILE' => Rscons.set_suffix(target, env.expand_varref("${DEPFILESUFFIX}", vars)),
|
||||
})
|
||||
com_prefix = KNOWN_SUFFIXES.find do |compiler, suffix_var|
|
||||
sources.first.end_with?(*env.expand_varref("${#{suffix_var}}"))
|
||||
sources.first.end_with?(*env.expand_varref("${#{suffix_var}}", vars))
|
||||
end.tap do |v|
|
||||
v.nil? and raise "Error: unknown input file type: #{sources.first.inspect}"
|
||||
end.first
|
||||
|
Loading…
x
Reference in New Issue
Block a user