OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright (c) 2014 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2014 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 if not env.Bit('nonsfi_nacl'): | 8 if not env.Bit('nonsfi_nacl'): |
9 Return() | 9 Return() |
10 | 10 |
11 # Specifying the target arch is necessary for using inline assembly. | 11 # Specifying the target arch is necessary for using inline assembly. |
12 if env.Bit('target_x86_32'): | 12 if env.Bit('build_x86_32'): |
13 env.Append(CCFLAGS=['--target=i686-unknown-nacl']) | 13 env.Append(CCFLAGS=['--target=i686-unknown-nacl']) |
14 elif env.Bit('target_arm'): | 14 elif env.Bit('build_arm'): |
15 env.Append(CCFLAGS=['--target=armv7a-unknown-nacl-gnueabihf', '-mfloat-abi=har
d']) | 15 env.Append(CCFLAGS=['--target=armv7a-unknown-nacl-gnueabihf', '-mfloat-abi=har
d']) |
16 else: | 16 else: |
17 raise Exception('Unsupported architecture') | 17 raise Exception('Unsupported architecture') |
18 env.ComponentLibrary('libnacl_sys_private', ['linux_sys_private.c', | 18 env.ComponentLibrary('libnacl_sys_private', ['linux_sys_private.c', |
19 'irt_exception_handling.c']) | 19 'irt_exception_handling.c']) |
OLD | NEW |