add rspec test for overridding construction variables for an individual builer
This commit is contained in:
1 parent
837dff9374
commit
e04e67698a
4 files changed
+25
No files matched your search
@@ -0,0 +1,4 @@
|
||||
Rscons::Environment.new(echo: :command) do |env|
|
||||
env.Object("one.o", "one.c", 'CPPFLAGS' => ['-DONE'])
|
||||
env.Program('two_sources', ['one.o', 'two.c'])
|
||||
end
|
||||
@@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef ONE
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
printf("This is a C program with two sources.\n");
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,3 @@
|
||||
#ifdef ONE
|
||||
#error ONE should not be defined
|
||||
#endif
|
||||
Reference in new issue
Block a user