| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2011 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 | 6 |
| 7 import glob | 7 import glob |
| 8 import os | 8 import os |
| 9 import sys | 9 import sys |
| 10 | 10 |
| 11 Import('env') | 11 Import('env') |
| 12 | 12 |
| 13 # | 13 # |
| 14 # | 14 # |
| 15 # Build x86 only pieces | 15 # Build x86 only pieces |
| 16 # | 16 # |
| 17 # | 17 # |
| 18 if not env.Bit('target_x86'): Return() | 18 if not env.Bit('build_x86'): Return() |
| 19 | 19 |
| 20 # The following are copycode routines for x86-32 and x86-64. | 20 # The following are copycode routines for x86-32 and x86-64. |
| 21 # TODO(karl): Break this up so that we don't need to load | 21 # TODO(karl): Break this up so that we don't need to load |
| 22 # non-shared code in library. | 22 # non-shared code in library. |
| 23 env.ComponentLibrary(env.NaClTargetArchSuffix('nccopy'), [ | 23 env.ComponentLibrary(env.NaClTargetArchSuffix('nccopy'), [ |
| 24 'nccopycode.c', | 24 'nccopycode.c', |
| 25 'nccopycode_stores.S', | 25 'nccopycode_stores.S', |
| 26 ]) | 26 ]) |
| 27 | 27 |
| OLD | NEW |