OLD | NEW |
1 # Copyright 2008 the V8 project authors. All rights reserved. | 1 # Copyright 2008 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 28 matching lines...) Expand all Loading... |
39 # variable 'TOP'. You will also need to set the CXX, CC, AR and RANLIB | 39 # variable 'TOP'. You will also need to set the CXX, CC, AR and RANLIB |
40 # environment variables to the cross-compiling tools. | 40 # environment variables to the cross-compiling tools. |
41 ANDROID_TOP = os.environ.get('TOP') | 41 ANDROID_TOP = os.environ.get('TOP') |
42 if ANDROID_TOP is None: | 42 if ANDROID_TOP is None: |
43 ANDROID_TOP="" | 43 ANDROID_TOP="" |
44 | 44 |
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'] | 49 GCC_EXTRA_CCFLAGS = ['-fno-tree-vrp', '-fno-strict-aliasing'] |
50 GCC_DTOA_EXTRA_CCFLAGS = ['-fno-strict-aliasing'] | 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=armv5te', |
56 '-mtune=xscale', | 56 '-mtune=xscale', |
57 '-msoft-float', | 57 '-msoft-float', |
58 '-fpic', | 58 '-fpic', |
59 '-mthumb-interwork', | 59 '-mthumb-interwork', |
60 '-funwind-tables', | 60 '-funwind-tables', |
(...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1093 # version of scons. Also, there's a bug in some revisions that | 1093 # version of scons. Also, there's a bug in some revisions that |
1094 # doesn't allow this flag to be set, so we swallow any exceptions. | 1094 # doesn't allow this flag to be set, so we swallow any exceptions. |
1095 # Lovely. | 1095 # Lovely. |
1096 try: | 1096 try: |
1097 SetOption('warn', 'no-deprecated') | 1097 SetOption('warn', 'no-deprecated') |
1098 except: | 1098 except: |
1099 pass | 1099 pass |
1100 | 1100 |
1101 | 1101 |
1102 Build() | 1102 Build() |
OLD | NEW |