| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright (c) 2013 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2013 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('env') | 6 Import('env') |
| 7 | 7 |
| 8 # PNaCl doesn't have -finstrument-for-thread-suspension currently | 8 # PNaCl doesn't have -finstrument-for-thread-suspension currently |
| 9 # BUG http://code.google.com/p/nativeclient/issues/detail?id=2363 | 9 # BUG http://code.google.com/p/nativeclient/issues/detail?id=2363 |
| 10 # Neither does next-generation GCC, so far extant only for ARM (and the | 10 # Neither does next-generation GCC, so far extant only for ARM (and the |
| 11 # only non-bitcode compiler for ARM). | 11 # only non-bitcode compiler for ARM). |
| 12 if env.Bit('bitcode') or env.Bit('target_arm'): | 12 if env.Bit('bitcode') or env.Bit('target_arm') or env.Bit('nacl_clang'): |
| 13 Return() | 13 Return() |
| 14 | 14 |
| 15 inputs = ['gc_noinst.c'] | 15 inputs = ['gc_noinst.c'] |
| 16 | 16 |
| 17 # Compile gc_inst.c with -finstrument-for-thread-suspension | 17 # Compile gc_inst.c with -finstrument-for-thread-suspension |
| 18 env_inst = env.Clone() | 18 env_inst = env.Clone() |
| 19 env_inst.Append(CFLAGS=['-finstrument-for-thread-suspension']) | 19 env_inst.Append(CFLAGS=['-finstrument-for-thread-suspension']) |
| 20 inputs += env_inst.ComponentObject('gc_inst.c') | 20 inputs += env_inst.ComponentObject('gc_inst.c') |
| 21 | 21 |
| 22 nexe = env.ComponentProgram('compiler_thread_suspension', inputs, | 22 nexe = env.ComponentProgram('compiler_thread_suspension', inputs, |
| 23 EXTRA_LIBS=['${NONIRT_LIBS}']) | 23 EXTRA_LIBS=['${NONIRT_LIBS}']) |
| 24 | 24 |
| 25 node = env.CommandSelLdrTestNacl('compiler_thread_suspension.out', nexe) | 25 node = env.CommandSelLdrTestNacl('compiler_thread_suspension.out', nexe) |
| 26 | 26 |
| 27 env.AddNodeToTestSuite(node, ['small_tests'], | 27 env.AddNodeToTestSuite(node, ['small_tests'], |
| 28 'run_compiler_thread_suspension_test') | 28 'run_compiler_thread_suspension_test') |
| OLD | NEW |