| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright 2010 The Native Client Authors. All rights reserved. | 2 # Copyright 2010 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can | 3 # Use of this source code is governed by a BSD-style license that can |
| 4 # be found in the LICENSE file. | 4 # be found in the LICENSE file. |
| 5 | 5 |
| 6 Import('env') | 6 Import('env') |
| 7 | 7 |
| 8 env.ComponentProgram('stack_alignment_test.nexe', 'stack_alignment_test.c', | 8 stack_alignment_test_nexe = env.ComponentProgram('stack_alignment_test', |
| 9 EXTRA_LIBS=['pthread']) | 9 'stack_alignment_test.c', |
| 10 node = env.CommandSelLdrTestNacl( | 10 EXTRA_LIBS=['pthread']) |
| 11 'stack_alignment_test.out', | 11 node = env.CommandSelLdrTestNacl('stack_alignment_test.out', |
| 12 command=[env.File('stack_alignment_test.nexe')]) | 12 stack_alignment_test_nexe) |
| 13 env.AddNodeToTestSuite(node, ['small_tests'], 'run_stack_alignment_test') | 13 env.AddNodeToTestSuite(node, ['small_tests'], 'run_stack_alignment_test') |
| 14 | 14 |
| 15 if env.Bit('build_x86') and not env.Bit('bitcode'): | 15 if env.Bit('build_x86') and not env.Bit('bitcode'): |
| 16 # This tests use of x86-specific SSE operations. | 16 # This tests use of x86-specific SSE operations. |
| 17 env.ComponentProgram('sse_alignment_test.nexe', 'sse_alignment_test.c', | 17 sse_alignment_test_nexe = env.ComponentProgram( |
| 18 EXTRA_CFLAGS=['-msse2'], EXTRA_LIBS=['pthread']) | 18 'sse_alignment_test', |
| 19 node = env.CommandSelLdrTestNacl( | 19 'sse_alignment_test.c', |
| 20 'sse_alignment_test.out', | 20 EXTRA_CFLAGS=['-msse2'], |
| 21 command=[env.File('sse_alignment_test.nexe')]) | 21 EXTRA_LIBS=['pthread']) |
| 22 node = env.CommandSelLdrTestNacl('sse_alignment_test.out', |
| 23 sse_alignment_test_nexe) |
| 22 env.AddNodeToTestSuite(node, ['small_tests'], 'run_sse_alignment_test') | 24 env.AddNodeToTestSuite(node, ['small_tests'], 'run_sse_alignment_test') |
| OLD | NEW |