fix a build test for MinGW

This commit is contained in:
Josh Holtrop 2014-06-12 13:35:11 -04:00
parent 1b50a9dd3c
commit 3ab9c8723b

View File

@ -168,10 +168,10 @@ describe Rscons do
"gcc -o simple#{env["PROGSUFFIX"]} simple.o", "gcc -o simple#{env["PROGSUFFIX"]} simple.o",
] ]
e2 = Rscons::Environment.new(echo: :command) do |env| e2 = Rscons::Environment.new(echo: :command) do |env|
env["LIBS"] += ["c"] env["LIBPATH"] += ["libdir"]
env.Program('simple', Dir['*.c']) env.Program('simple', Dir['*.c'])
end end
lines.should == ["gcc -o simple#{env["PROGSUFFIX"]} simple.o -lc"] lines.should == ["gcc -o simple#{env["PROGSUFFIX"]} simple.o -Llibdir"]
end end
it 'builds object files in a different build directory' do it 'builds object files in a different build directory' do