remove String#has_suffix? monkey-patch; use String#end_with?

This commit is contained in:
josh committed 2014-02-14 10:20:32 -05:00
1 parent b43c473762
commit fa7d17675b
4 files changed
+6 -17

No files matched your search

+2 -2
View File
@@ -21,9 +21,9 @@ module Rscons
return false unless objects
ld = if env["LD"]
env["LD"]
elsif sources.find {|s| s.has_suffix?(env["DSUFFIX"])}
elsif sources.find {|s| s.end_with?(*env["DSUFFIX"])}
env["DC"]
elsif sources.find {|s| s.has_suffix?(env["CXXSUFFIX"])}
elsif sources.find {|s| s.end_with?(*env["CXXSUFFIX"])}
env["CXX"]
else
env["CC"]