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

Side by Side Diff: SConstruct

Issue 7276050: Change startup ABI for untrusted code to be C-compatible (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: disable bogus stack_frame.cc test for now Created 9 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « DEPS ('k') | site_scons/site_tools/naclsdk.py » ('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) 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 import atexit 6 import atexit
7 import glob 7 import glob
8 import os 8 import os
9 import platform 9 import platform
10 import stat 10 import stat
(...skipping 3068 matching lines...) Expand 10 before | Expand all | Expand 10 after
3079 # we do it separately for each after making nacl_irt_env and 3079 # we do it separately for each after making nacl_irt_env and
3080 # clearing its Bit('nacl_glibc'). 3080 # clearing its Bit('nacl_glibc').
3081 def AddImplicitLibs(env): 3081 def AddImplicitLibs(env):
3082 if not env.Bit('nacl_glibc'): 3082 if not env.Bit('nacl_glibc'):
3083 # These are automatically linked in by the compiler, either directly 3083 # These are automatically linked in by the compiler, either directly
3084 # or via the linker script that is -lc. In the non-glibc build, we 3084 # or via the linker script that is -lc. In the non-glibc build, we
3085 # are the ones providing these files, so we need dependencies. 3085 # are the ones providing these files, so we need dependencies.
3086 # The ComponentProgram method (site_scons/site_tools/component_builders.py) 3086 # The ComponentProgram method (site_scons/site_tools/component_builders.py)
3087 # adds dependencies on env['IMPLICIT_LIBS'] if that's set. 3087 # adds dependencies on env['IMPLICIT_LIBS'] if that's set.
3088 implicit_libs = ['crt1.o', 'libnacl.a', 'libcrt_platform.a'] 3088 implicit_libs = ['crt1.o', 'libnacl.a', 'libcrt_platform.a']
3089 # TODO(mcgrathr): multilib nonsense defeats -B! figure out a better way.
3090 if GetPlatform('targetplatform') == 'x86-32':
3091 implicit_libs.append(os.path.join('32', 'crt1.o'))
3089 if env.Bit('bitcode'): 3092 if env.Bit('bitcode'):
3090 implicit_libs += ['libehsupport.a'] 3093 implicit_libs += ['libehsupport.a']
3091 else: 3094 else:
3092 implicit_libs += ['crti.o', 'crtn.o'] 3095 implicit_libs += ['crti.o', 'crtn.o']
3093 env['IMPLICIT_LIBS'] = ['${LIB_DIR}/%s' % file for file in implicit_libs] 3096 env['IMPLICIT_LIBS'] = [env.File(os.path.join('${LIB_DIR}', file))
3097 for file in implicit_libs]
3094 # The -B<dir>/ flag is necessary to tell gcc to look for crt[1in].o there. 3098 # The -B<dir>/ flag is necessary to tell gcc to look for crt[1in].o there.
3095 env.Prepend(LINKFLAGS=['-B${LIB_DIR}/']) 3099 env.Prepend(LINKFLAGS=['-B${LIB_DIR}/'])
3096 3100
3097 AddImplicitLibs(nacl_env) 3101 AddImplicitLibs(nacl_env)
3098 AddImplicitLibs(nacl_irt_env) 3102 AddImplicitLibs(nacl_irt_env)
3099 3103
3100 # Give the environment for building the IRT and its libraries 3104 # Give the environment for building the IRT and its libraries
3101 # the -Ds used for building those libraries for the SDK. 3105 # the -Ds used for building those libraries for the SDK.
3102 # TODO(mcgrathr,bradnelson): clean up when nacl_extra_sdk_env goes away. 3106 # TODO(mcgrathr,bradnelson): clean up when nacl_extra_sdk_env goes away.
3103 # 3107 #
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
3337 nacl_env.ValidateSdk() 3341 nacl_env.ValidateSdk()
3338 3342
3339 if BROKEN_TEST_COUNT > 0: 3343 if BROKEN_TEST_COUNT > 0:
3340 msg = "There are %d broken tests." % BROKEN_TEST_COUNT 3344 msg = "There are %d broken tests." % BROKEN_TEST_COUNT
3341 if GetOption('brief_comstr'): 3345 if GetOption('brief_comstr'):
3342 msg += " Add --verbose to the command line for more information." 3346 msg += " Add --verbose to the command line for more information."
3343 print msg 3347 print msg
3344 3348
3345 # separate warnings from actual build output 3349 # separate warnings from actual build output
3346 Banner('B U I L D - O U T P U T:') 3350 Banner('B U I L D - O U T P U T:')
OLDNEW
« no previous file with comments | « DEPS ('k') | site_scons/site_tools/naclsdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698