Pre-build hooks do not respect modified key values for old-style builders
This commit is contained in:
1 parent
f1b24ee8ba
commit
387c40176b
3 files changed
+35
-1
No files matched your search
@@ -776,6 +776,18 @@ EOF
|
||||
result = run_test(rsconsfile: "bc_produces.rb")
|
||||
expect(result.stderr).to eq ""
|
||||
end
|
||||
|
||||
it 'supports build hooks to override construction variables' do
|
||||
test_dir("build_dir")
|
||||
result = run_test(rsconsfile: "backward_compatible_build_hooks.rb")
|
||||
expect(result.stderr).to eq ""
|
||||
expect(Set[*lines(result.stdout)]).to eq Set[
|
||||
'gcc -c -o one.o -MMD -MF one.mf -Isrc/one/ -Isrc/two/ -O1 src/two/two.c',
|
||||
'gcc -c -o two.o -MMD -MF two.mf -Isrc/one/ -Isrc/two/ -O2 src/two/two.c'
|
||||
]
|
||||
expect(File.exists?('one.o')).to be_truthy
|
||||
expect(File.exists?('two.o')).to be_truthy
|
||||
end
|
||||
end
|
||||
|
||||
context "CFile builder" do
|
||||
|
||||
Reference in new issue
Block a user