fix variable references that expand to arrays in build target sources - fix #20
This commit is contained in:
1 parent
cb3cc9a0de
commit
76610a07a9
3 files changed
+12
-1
No files matched your search
@@ -754,4 +754,14 @@ EOF
|
||||
expect(File.read("pp")).to match(%r{abc88xyz}m)
|
||||
end
|
||||
|
||||
it "allows construction variable references which expand to arrays in sources of a build target" do
|
||||
test_dir("simple")
|
||||
Rscons::Environment.new do |env|
|
||||
env["sources"] = Dir["*.c"]
|
||||
env.Program("simple", "${sources}")
|
||||
end
|
||||
expect(File.exists?("simple.o")).to be_truthy
|
||||
expect(`./simple`).to eq "This is a simple C program\n"
|
||||
end
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user