fix PROGSUFFIX handling - close #29

This commit is contained in:
josh committed 2017-05-29 11:40:01 -04:00
1 parent d31b4725d2
commit 1880e6650e
6 files changed
+34 -4

No files matched your search

+3 -2
View File
@@ -39,9 +39,10 @@ module Rscons
#
# @return [BuildTarget]
def create_build_target(options)
env, target, vars = options.values_at(:env, :target, :vars)
my_options = options.dup
unless my_options[:target] =~ /\./
my_options[:target] += options[:env].expand_varref("${PROGSUFFIX}")
unless env.expand_varref(target, vars) =~ /\./
my_options[:target] += env.expand_varref("${PROGSUFFIX}", vars)
end
super(my_options)
end