OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import sys | 6 import sys |
7 | 7 |
8 from SCons.Errors import UserError | 8 from SCons.Errors import UserError |
9 | 9 |
10 Import('env') | 10 Import('env') |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 ['${PYTHON}', | 173 ['${PYTHON}', |
174 env.File('gen_dfa.py'), | 174 env.File('gen_dfa.py'), |
175 '--bitness', bits, | 175 '--bitness', bits, |
176 '--mode', automaton, | 176 '--mode', automaton, |
177 '>${TARGET}', | 177 '>${TARGET}', |
178 ] + INSTRUCTION_DEFINITIONS) | 178 ] + INSTRUCTION_DEFINITIONS) |
179 | 179 |
180 include_dir = rl_instruction_file.dir.get_abspath() | 180 include_dir = rl_instruction_file.dir.get_abspath() |
181 assert include_dir == byte_machines.dir.get_abspath() | 181 assert include_dir == byte_machines.dir.get_abspath() |
182 | 182 |
183 rl_file = env.File('unreviewed/%s_x86_%s.rl' % (automaton, bits)) | 183 rl_file = env.File('%s_x86_%s.rl' % (automaton, bits)) |
184 | 184 |
185 (c_file,) = env.AutoDepsCommand( | 185 (c_file,) = env.AutoDepsCommand( |
186 '%s_x86_%s.c' % (automaton, bits), | 186 '%s_x86_%s.c' % (automaton, bits), |
187 [ragel_binary, | 187 [ragel_binary, |
188 ragel_flags, | 188 ragel_flags, |
189 '-LL', | 189 '-LL', |
190 '-I..', | 190 '-I..', |
191 '-I%s' % include_dir, | 191 '-I%s' % include_dir, |
192 rl_file, | 192 rl_file, |
193 '-o', '${TARGET}'], | 193 '-o', '${TARGET}'], |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 '--gas', gas, | 323 '--gas', gas, |
324 '--objdump', objdump, | 324 '--objdump', objdump, |
325 '--validator_dll', validator_dll]) | 325 '--validator_dll', validator_dll]) |
326 | 326 |
327 # Never run decoder tests in parallel because they can take all CPU. | 327 # Never run decoder tests in parallel because they can take all CPU. |
328 SideEffect('check_validator', regular_instructions_test) | 328 SideEffect('check_validator', regular_instructions_test) |
329 | 329 |
330 env.AlwaysBuild(env.Alias( | 330 env.AlwaysBuild(env.Alias( |
331 'dfacheckvalidator', | 331 'dfacheckvalidator', |
332 [superinstruction_verified, regular_instructions_test])) | 332 [superinstruction_verified, regular_instructions_test])) |
OLD | NEW |