lib/dev/BoostBuild.rb in dev-1.0.125 vs lib/dev/BoostBuild.rb in dev-1.0.126
- old
+ new
@@ -1,13 +1,17 @@
module Dev
class BoostBuild
def self.defaultToolset
- text=`b2 --debug-configuration`
- toolset=''
- text.scan(/<toolset>([\.\w-]+)/).each{ | var_match |
- toolset=var_match[0].to_s
- }
- return toolset
+ begin
+ text=`b2 --debug-configuration`
+ toolset=''
+ text.scan(/<toolset>([\.\w-]+)/).each{ | var_match |
+ toolset=var_match[0].to_s
+ }
+ return toolset
+ rescue
+ return nil
+ end
end
def self.getLibraryProperties(filename)
words=filename.split('-')
flags=words[2];
\ No newline at end of file