| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 'superinstructions_verified_x86_%s.out' % bitness, | 308 'superinstructions_verified_x86_%s.out' % bitness, |
| 309 ['${PYTHON}', | 309 ['${PYTHON}', |
| 310 env.File('verify_superinstructions.py'), | 310 env.File('verify_superinstructions.py'), |
| 311 '--bitness', bitness, | 311 '--bitness', bitness, |
| 312 '--gas', gas, | 312 '--gas', gas, |
| 313 '--objdump', objdump, | 313 '--objdump', objdump, |
| 314 '--validator_dll', validator_dll, | 314 '--validator_dll', validator_dll, |
| 315 superinstruction]) | 315 superinstruction]) |
| 316 | 316 |
| 317 env.AlwaysBuild(env.Alias('dfacheckvalidator', superinstruction_verified)) | 317 env.AlwaysBuild(env.Alias('dfacheckvalidator', superinstruction_verified)) |
| OLD | NEW |