Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Side by Side Diff: tests/compiler_thread_suspension/nacl.scons

Issue 639113003: Add nacl-clang testing to SCons (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: ncbray comment Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/untrusted/stubs/crtn_x86_64.S ('k') | tests/exception_test/nacl.scons » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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')
OLDNEW
« no previous file with comments | « src/untrusted/stubs/crtn_x86_64.S ('k') | tests/exception_test/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698