Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a8023ae03c | ||
|
|
99ba015630 |
No files matched your search
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
PATH
|
PATH
|
||||||
remote: .
|
remote: .
|
||||||
specs:
|
specs:
|
||||||
rscons (1.8.0)
|
rscons (1.8.1)
|
||||||
json (~> 1.0)
|
json (~> 1.0)
|
||||||
|
|
||||||
GEM
|
GEM
|
||||||
|
|||||||
@@ -662,8 +662,10 @@ module Rscons
|
|||||||
|
|
||||||
# Print the Environment's construction variables for debugging.
|
# Print the Environment's construction variables for debugging.
|
||||||
def dump
|
def dump
|
||||||
@varset.to_h.sort.each do |var, val|
|
varset_hash = @varset.to_h
|
||||||
puts "#{var} => #{val.inspect}"
|
varset_hash.keys.sort_by(&:to_s).each do |var|
|
||||||
|
var_str = var.is_a?(Symbol) ? var.inspect : var
|
||||||
|
puts "#{var_str} => #{varset_hash[var].inspect}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
module Rscons
|
module Rscons
|
||||||
# gem version
|
# gem version
|
||||||
VERSION = "1.8.0"
|
VERSION = "1.8.1"
|
||||||
end
|
end
|
||||||
@@ -725,9 +725,11 @@ EOF
|
|||||||
test_dir("simple")
|
test_dir("simple")
|
||||||
env = Rscons::Environment.new do |env|
|
env = Rscons::Environment.new do |env|
|
||||||
env["CFLAGS"] += %w[-O2 -fomit-frame-pointer]
|
env["CFLAGS"] += %w[-O2 -fomit-frame-pointer]
|
||||||
|
env[:foo] = :bar
|
||||||
end
|
end
|
||||||
env.dump
|
env.dump
|
||||||
result = lines
|
result = lines
|
||||||
|
expect(result.include?(%{:foo => :bar})).to be_truthy
|
||||||
expect(result.include?(%{CFLAGS => ["-O2", "-fomit-frame-pointer"]})).to be_truthy
|
expect(result.include?(%{CFLAGS => ["-O2", "-fomit-frame-pointer"]})).to be_truthy
|
||||||
expect(result.include?(%{CPPPATH => []})).to be_truthy
|
expect(result.include?(%{CPPPATH => []})).to be_truthy
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user