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

Side by Side Diff: src/nonsfi/linux/nacl.scons

Issue 758223003: Cleanup: Use Bit('build_ARCH') instead of Bit('target_ARCH') (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Fix + simplify Created 6 years 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 | « site_scons/site_tools/naclsdk.py ('k') | src/trusted/cpu_features/build.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) 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'])
OLDNEW
« no previous file with comments | « site_scons/site_tools/naclsdk.py ('k') | src/trusted/cpu_features/build.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698