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

Side by Side Diff: src/untrusted/pthread/nacl.scons

Issue 951583004: Implement pthread_rwlock functions for NaCl newlib (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | src/untrusted/pthread/nc_rwlock.c » ('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) 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('env') 6 Import('env')
7 7
8 # (elijahtaylor): Removing so braced groups will work for GC syscall wrapping. 8 # (elijahtaylor): Removing so braced groups will work for GC syscall wrapping.
9 env.FilterOut(CCFLAGS=['-pedantic']) 9 env.FilterOut(CCFLAGS=['-pedantic'])
10 10
(...skipping 18 matching lines...) Expand all
29 valgrind = env.ComponentObject( 29 valgrind = env.ComponentObject(
30 'valgrind_annotations.o', 30 'valgrind_annotations.o',
31 '${MAIN_DIR}/src/untrusted/valgrind/dynamic_annotations.c') 31 '${MAIN_DIR}/src/untrusted/valgrind/dynamic_annotations.c')
32 32
33 nc_objs = [env.ComponentObject(module, module + '.c') 33 nc_objs = [env.ComponentObject(module, module + '.c')
34 for module in [ 34 for module in [
35 'nc_thread', 35 'nc_thread',
36 'nc_mutex', 36 'nc_mutex',
37 'nc_condvar', 37 'nc_condvar',
38 'nc_semaphore', 38 'nc_semaphore',
39 'nc_rwlock',
39 'stack_end', 40 'stack_end',
40 ] 41 ]
41 ] + [valgrind] 42 ] + [valgrind]
42 43
43 # The public library relies on the IRT for crucial system services. 44 # The public library relies on the IRT for crucial system services.
44 libpthread = env.ComponentLibrary('libpthread', nc_objs + ['nc_init_irt.c']) 45 libpthread = env.ComponentLibrary('libpthread', nc_objs + ['nc_init_irt.c'])
45 env.AddLibraryToSdk(libpthread) 46 env.AddLibraryToSdk(libpthread)
46 47
47 if env.Bit('nonsfi_nacl'): 48 if env.Bit('nonsfi_nacl'):
48 nc_private_objs = nc_objs + [ 49 nc_private_objs = nc_objs + [
(...skipping 27 matching lines...) Expand all
76 # installed, we ensure that they are in place before they're used. 77 # installed, we ensure that they are in place before they're used.
77 for compiler in ['${CC}', '${CXX}']: 78 for compiler in ['${CC}', '${CXX}']:
78 # TODO(mcgrathr): This can't be the best way! Ideally we'd just use 79 # TODO(mcgrathr): This can't be the best way! Ideally we'd just use
79 # '${CC}' directly in env.Depends and that should be fine for scons. 80 # '${CC}' directly in env.Depends and that should be fine for scons.
80 # But sometimes '${CC}' is not just '.../gcc', it's '.../gcc -m32'. 81 # But sometimes '${CC}' is not just '.../gcc', it's '.../gcc -m32'.
81 compiler = env.subst(compiler).split()[0] 82 compiler = env.subst(compiler).split()[0]
82 env.Depends(env.WhereIs(compiler), n) 83 env.Depends(env.WhereIs(compiler), n)
83 else: 84 else:
84 n = [] 85 n = []
85 env.Alias('install_libpthread', n) 86 env.Alias('install_libpthread', n)
OLDNEW
« no previous file with comments | « no previous file | src/untrusted/pthread/nc_rwlock.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698