lib/dev/BoostBuild.rb in dev-1.0.229 vs lib/dev/BoostBuild.rb in dev-1.0.230
- old
+ new
@@ -11,10 +11,13 @@
puts_debug "BOOSTBUILD_DEFAULT_TOOLSET=#{BOOSTBUILD_DEFAULT_TOOLSET}"
return BOOSTBUILD_DEFAULT_TOOLSET
end
return @@default_toolset if !@@default_toolset.nil?
begin
- text=`b2 --debug-configuration`
+ text=''
+ Dir.chdir(DEV_ROOT) { |dir|
+ text=`b2 --debug-configuration`
+ }
toolset=''
text.scan(/<toolset>([\.\w-]+)/).each{ | var_match |
toolset=var_match[0].to_s
}
return toolset
\ No newline at end of file