remove String#has_suffix? monkey-patch; use String#end_with?
This commit is contained in:
1 parent
b43c473762
commit
fa7d17675b
4 files changed
+6
-17
No files matched your search
@@ -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"]
|
||||
|
||||
Reference in new issue
Block a user