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

Side by Side Diff: SConstruct

Issue 1640008: Change default Android scons build to suit more modern hardware. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 8 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2010 the V8 project authors. All rights reserved. 1 # Copyright 2010 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 # TODO: Sort these issues out properly but as a temporary solution for gcc 4.4 45 # TODO: Sort these issues out properly but as a temporary solution for gcc 4.4
46 # on linux we need these compiler flags to avoid crashes in the v8 test suite 46 # on linux we need these compiler flags to avoid crashes in the v8 test suite
47 # and avoid dtoa.c strict aliasing issues 47 # and avoid dtoa.c strict aliasing issues
48 if os.environ.get('GCC_VERSION') == '44': 48 if os.environ.get('GCC_VERSION') == '44':
49 GCC_EXTRA_CCFLAGS = ['-fno-tree-vrp', '-fno-strict-aliasing'] 49 GCC_EXTRA_CCFLAGS = ['-fno-tree-vrp', '-fno-strict-aliasing']
50 GCC_DTOA_EXTRA_CCFLAGS = [] 50 GCC_DTOA_EXTRA_CCFLAGS = []
51 else: 51 else:
52 GCC_EXTRA_CCFLAGS = [] 52 GCC_EXTRA_CCFLAGS = []
53 GCC_DTOA_EXTRA_CCFLAGS = [] 53 GCC_DTOA_EXTRA_CCFLAGS = []
54 54
55 ANDROID_FLAGS = ['-march=armv5te', 55 ANDROID_FLAGS = ['-march=armv7-a',
56 '-mtune=xscale', 56 '-mtune=cortex-a8',
57 '-msoft-float', 57 '-mfloat-abi=softfp',
58 '-mfpu=vfp',
58 '-fpic', 59 '-fpic',
59 '-mthumb-interwork', 60 '-mthumb-interwork',
60 '-funwind-tables', 61 '-funwind-tables',
61 '-fstack-protector', 62 '-fstack-protector',
62 '-fno-short-enums', 63 '-fno-short-enums',
63 '-fmessage-length=0', 64 '-fmessage-length=0',
64 '-finline-functions', 65 '-finline-functions',
65 '-fno-inline-functions-called-once', 66 '-fno-inline-functions-called-once',
66 '-fgcse-after-reload', 67 '-fgcse-after-reload',
67 '-frerun-cse-after-loop', 68 '-frerun-cse-after-loop',
68 '-frename-registers', 69 '-frename-registers',
69 '-fomit-frame-pointer', 70 '-fomit-frame-pointer',
70 '-fno-strict-aliasing', 71 '-fno-strict-aliasing',
71 '-finline-limit=64', 72 '-finline-limit=64',
73 '-DCAN_USE_VFP_INSTRUCTIONS=1',
74 '-DCAN_USE_ARMV7_INSTRUCTIONS=1',
72 '-MD'] 75 '-MD']
73 76
74 ANDROID_INCLUDES = [ANDROID_TOP + '/bionic/libc/arch-arm/include', 77 ANDROID_INCLUDES = [ANDROID_TOP + '/bionic/libc/arch-arm/include',
75 ANDROID_TOP + '/bionic/libc/include', 78 ANDROID_TOP + '/bionic/libc/include',
76 ANDROID_TOP + '/bionic/libstdc++/include', 79 ANDROID_TOP + '/bionic/libstdc++/include',
77 ANDROID_TOP + '/bionic/libc/kernel/common', 80 ANDROID_TOP + '/bionic/libc/kernel/common',
78 ANDROID_TOP + '/bionic/libc/kernel/arch-arm', 81 ANDROID_TOP + '/bionic/libc/kernel/arch-arm',
79 ANDROID_TOP + '/bionic/libm/include', 82 ANDROID_TOP + '/bionic/libm/include',
80 ANDROID_TOP + '/bionic/libm/include/arch/arm', 83 ANDROID_TOP + '/bionic/libm/include/arch/arm',
81 ANDROID_TOP + '/bionic/libthread_db/include', 84 ANDROID_TOP + '/bionic/libthread_db/include',
(...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 # version of scons. Also, there's a bug in some revisions that 1123 # version of scons. Also, there's a bug in some revisions that
1121 # doesn't allow this flag to be set, so we swallow any exceptions. 1124 # doesn't allow this flag to be set, so we swallow any exceptions.
1122 # Lovely. 1125 # Lovely.
1123 try: 1126 try:
1124 SetOption('warn', 'no-deprecated') 1127 SetOption('warn', 'no-deprecated')
1125 except: 1128 except:
1126 pass 1129 pass
1127 1130
1128 1131
1129 Build() 1132 Build()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698