| 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 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 # See http://code.google.com/p/nativeclient/wiki/ValgrindMemcheck | 6 # See http://code.google.com/p/nativeclient/wiki/ValgrindMemcheck |
| 7 # for details. | 7 # for details. |
| 8 | 8 |
| 9 Import('env') | 9 Import('env') |
| 10 | 10 |
| 11 # we do not have proper arm support and definitely no bitcode support | 11 # we do not have proper arm support and definitely no bitcode support |
| 12 # BUG= http://code.google.com/p/nativeclient/issues/detail?id=2357 | 12 # BUG= http://code.google.com/p/nativeclient/issues/detail?id=2357 |
| 13 if env.Bit('target_arm') or env.Bit('bitcode'): | 13 if env.Bit('build_arm') or env.Bit('bitcode'): |
| 14 Return() | 14 Return() |
| 15 | 15 |
| 16 libvalgrind = env.NaClSdkLibrary('libvalgrind', 'valgrind_interceptors.c') | 16 libvalgrind = env.NaClSdkLibrary('libvalgrind', 'valgrind_interceptors.c') |
| 17 env.AddHeaderToSdk(['dynamic_annotations.h']) | 17 env.AddHeaderToSdk(['dynamic_annotations.h']) |
| 18 | 18 |
| 19 # With newlib, dynamic annotations are built into libpthread. | 19 # With newlib, dynamic annotations are built into libpthread. |
| 20 # With glibc, they are in a separate library. | 20 # With glibc, they are in a separate library. |
| 21 if env.Bit('nacl_glibc'): | 21 if env.Bit('nacl_glibc'): |
| 22 libdynamic_annotations = env.NaClSdkLibrary('libdynamic_annotations', | 22 libdynamic_annotations = env.NaClSdkLibrary('libdynamic_annotations', |
| 23 'dynamic_annotations.c') | 23 'dynamic_annotations.c') |
| OLD | NEW |