|
78 | 78 | "directory": "%(workdir)s", |
79 | 79 | "file": "%(src_file)s", |
80 | 80 | "output": "%(output2_file)s" |
| 81 | + }, |
| 82 | + { |
| 83 | + "command": "%(exe)s mygcc.py cc -o %(output3_file)s -c %(variant3_src_file)s", |
| 84 | + "directory": "%(workdir)s", |
| 85 | + "file": "%(variant3_src_file)s", |
| 86 | + "output": "%(output3_file)s" |
81 | 87 | } |
82 | 88 | ] |
83 | 89 | """ % {'exe': sys.executable, |
84 | 90 | 'workdir': test.workdir, |
85 | 91 | 'src_file': os.path.join('src', 'test_main.c'), |
86 | 92 | 'output_file': os.path.join('build', 'test_main.o'), |
87 | 93 | 'output2_file': os.path.join('build2', 'test_main.o'), |
88 | | - 'variant_src_file': os.path.join('build', 'test_main.c') |
| 94 | + 'output3_file': os.path.join('build3', 'test_main_copy.o'), |
| 95 | + 'variant_src_file': os.path.join('build', 'test_main.c'), |
| 96 | + 'variant3_src_file': os.path.join('build3', 'test_main_copy.c') |
89 | 97 | } |
90 | 98 |
|
91 | 99 | if sys.platform == 'win32': |
|
108 | 116 | "directory": "%(workdir)s", |
109 | 117 | "file": "%(abs_src_file)s", |
110 | 118 | "output": "%(abs_output2_file)s" |
| 119 | + }, |
| 120 | + { |
| 121 | + "command": "%(exe)s mygcc.py cc -o %(output3_file)s -c %(variant3_src_file)s", |
| 122 | + "directory": "%(workdir)s", |
| 123 | + "file": "%(abs_variant3_src_file)s", |
| 124 | + "output": "%(abs_output3_file)s" |
111 | 125 | } |
112 | 126 | ] |
113 | 127 | """ % {'exe': sys.executable, |
|
116 | 130 | 'abs_src_file': os.path.join(test.workdir, 'src', 'test_main.c'), |
117 | 131 | 'abs_output_file': os.path.join(test.workdir, 'build', 'test_main.o'), |
118 | 132 | 'abs_output2_file': os.path.join(test.workdir, 'build2', 'test_main.o'), |
| 133 | + 'abs_output3_file': os.path.join(test.workdir, 'build3', 'test_main_copy.o'), |
119 | 134 | 'output_file': os.path.join('build', 'test_main.o'), |
120 | 135 | 'output2_file': os.path.join('build2', 'test_main.o'), |
121 | | - 'variant_src_file': os.path.join('build', 'test_main.c')} |
| 136 | + 'output3_file': os.path.join('build3', 'test_main_copy.o'), |
| 137 | + 'abs_variant3_src_file': os.path.join(test.workdir, 'build3', 'test_main_copy.c'), |
| 138 | + 'variant_src_file': os.path.join('build', 'test_main.c'), |
| 139 | + 'variant3_src_file': os.path.join('build3', 'test_main_copy.c') |
| 140 | + } |
122 | 141 |
|
123 | 142 | if sys.platform == 'win32': |
124 | 143 | example_abs_file = example_abs_file.replace('\\', '\\\\') |
|
0 commit comments