dev 1.0.106 → 1.0.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/dev/BoostBuild.rb +3 -1
- data/lib/dev/Defaults.rb +8 -2
- metadata +1 -1
data/lib/dev/BoostBuild.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
module Dev
|
2
2
|
class BoostBuild
|
3
3
|
def self.defaultToolset
|
4
|
-
text
|
4
|
+
status,text,stderr=systemu("b2 --debug-configuration")
|
5
|
+
#return "msvc-11.0" if status != 0
|
6
|
+
#text=`b2 --debug-configuration`
|
5
7
|
toolset=''
|
6
8
|
text.scan(/<toolset>([\.\w-]+)/).each{ | var_match |
|
7
9
|
toolset=var_match[0].to_s
|
data/lib/dev/Defaults.rb
CHANGED
@@ -3,8 +3,14 @@ class Defaults
|
|
3
3
|
attr_accessor :project
|
4
4
|
|
5
5
|
def get_default_value(key)
|
6
|
-
|
7
|
-
|
6
|
+
begin
|
7
|
+
return get_default_value_src_glob if key=="src_glob"
|
8
|
+
return get_default_value_toolset if key=="toolset"
|
9
|
+
rescue Exception=>e
|
10
|
+
puts "Dev::Defaults.get_default_value('#{key}') raised an exception"
|
11
|
+
puts e.to_s
|
12
|
+
return nil
|
13
|
+
end
|
8
14
|
end
|
9
15
|
|
10
16
|
def get_default_value_src_glob
|