| OLD | NEW |
| 1 # Copyright 2013 the V8 project authors. All rights reserved. | 1 # Copyright 2013 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 12 matching lines...) Expand all Loading... |
| 23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 # Shared definitions for all V8-related targets. | 28 # Shared definitions for all V8-related targets. |
| 29 | 29 |
| 30 { | 30 { |
| 31 'variables': { | 31 'variables': { |
| 32 'msvs_use_common_release': 0, | 32 'msvs_use_common_release': 0, |
| 33 'gcc_version%': 'unknown', | |
| 34 'clang%': 0, | 33 'clang%': 0, |
| 35 'v8_target_arch%': '<(target_arch)', | 34 'v8_target_arch%': '<(target_arch)', |
| 36 # Native Client builds currently use the V8 ARM JIT and | 35 # Native Client builds currently use the V8 ARM JIT and |
| 37 # arm/simulator-arm.cc to defer the significant effort required | 36 # arm/simulator-arm.cc to defer the significant effort required |
| 38 # for NaCl JIT support. The nacl_target_arch variable provides | 37 # for NaCl JIT support. The nacl_target_arch variable provides |
| 39 # the 'true' target arch for places in this file that need it. | 38 # the 'true' target arch for places in this file that need it. |
| 40 # TODO(bradchen): get rid of nacl_target_arch when someday | 39 # TODO(bradchen): get rid of nacl_target_arch when someday |
| 41 # NaCl V8 builds stop using the ARM simulator | 40 # NaCl V8 builds stop using the ARM simulator |
| 42 'nacl_target_arch%': 'none', # must be set externally | 41 'nacl_target_arch%': 'none', # must be set externally |
| 43 | 42 |
| (...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 935 '-O0', | 934 '-O0', |
| 936 '-O3', # TODO(2807) should be -O1. | 935 '-O3', # TODO(2807) should be -O1. |
| 937 '-O2', | 936 '-O2', |
| 938 '-Os', | 937 '-Os', |
| 939 ], | 938 ], |
| 940 'cflags': [ | 939 'cflags': [ |
| 941 '-fdata-sections', | 940 '-fdata-sections', |
| 942 '-ffunction-sections', | 941 '-ffunction-sections', |
| 943 '-O1', # TODO(2807) should be -O3. | 942 '-O1', # TODO(2807) should be -O3. |
| 944 ], | 943 ], |
| 945 'conditions': [ | |
| 946 ['gcc_version==44 and clang==0', { | |
| 947 'cflags': [ | |
| 948 # Avoid crashes with gcc 4.4 in the v8 test suite. | |
| 949 '-fno-tree-vrp', | |
| 950 ], | |
| 951 }], | |
| 952 ], | |
| 953 }], | 944 }], |
| 954 ['OS=="mac"', { | 945 ['OS=="mac"', { |
| 955 'xcode_settings': { | 946 'xcode_settings': { |
| 956 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 | 947 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 |
| 957 'GCC_STRICT_ALIASING': 'YES', | 948 'GCC_STRICT_ALIASING': 'YES', |
| 958 }, | 949 }, |
| 959 }], | 950 }], |
| 960 ], | 951 ], |
| 961 }, # DebugBase1 | 952 }, # DebugBase1 |
| 962 # Abstract configuration for v8_optimized_debug == 2. | 953 # Abstract configuration for v8_optimized_debug == 2. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1001 ], | 992 ], |
| 1002 'conditions': [ | 993 'conditions': [ |
| 1003 # TODO(crbug.com/272548): Avoid -O3 in NaCl | 994 # TODO(crbug.com/272548): Avoid -O3 in NaCl |
| 1004 ['nacl_target_arch=="none"', { | 995 ['nacl_target_arch=="none"', { |
| 1005 'cflags': ['-O3'], | 996 'cflags': ['-O3'], |
| 1006 'cflags!': ['-O2'], | 997 'cflags!': ['-O2'], |
| 1007 }, { | 998 }, { |
| 1008 'cflags': ['-O2'], | 999 'cflags': ['-O2'], |
| 1009 'cflags!': ['-O3'], | 1000 'cflags!': ['-O3'], |
| 1010 }], | 1001 }], |
| 1011 ['gcc_version==44 and clang==0', { | |
| 1012 'cflags': [ | |
| 1013 # Avoid crashes with gcc 4.4 in the v8 test suite. | |
| 1014 '-fno-tree-vrp', | |
| 1015 ], | |
| 1016 }], | |
| 1017 ], | 1002 ], |
| 1018 }], | 1003 }], |
| 1019 ['OS=="mac"', { | 1004 ['OS=="mac"', { |
| 1020 'xcode_settings': { | 1005 'xcode_settings': { |
| 1021 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 | 1006 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 |
| 1022 'GCC_STRICT_ALIASING': 'YES', | 1007 'GCC_STRICT_ALIASING': 'YES', |
| 1023 }, | 1008 }, |
| 1024 }], | 1009 }], |
| 1025 ], | 1010 ], |
| 1026 }, # DebugBase2 | 1011 }, # DebugBase2 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1079 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', { | 1064 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', { |
| 1080 'cflags!': [ | 1065 'cflags!': [ |
| 1081 '-Os', | 1066 '-Os', |
| 1082 ], | 1067 ], |
| 1083 'cflags': [ | 1068 'cflags': [ |
| 1084 '-fdata-sections', | 1069 '-fdata-sections', |
| 1085 '-ffunction-sections', | 1070 '-ffunction-sections', |
| 1086 '<(wno_array_bounds)', | 1071 '<(wno_array_bounds)', |
| 1087 ], | 1072 ], |
| 1088 'conditions': [ | 1073 'conditions': [ |
| 1089 [ 'gcc_version==44 and clang==0', { | |
| 1090 'cflags': [ | |
| 1091 # Avoid crashes with gcc 4.4 in the v8 test suite. | |
| 1092 '-fno-tree-vrp', | |
| 1093 ], | |
| 1094 }], | |
| 1095 # TODO(crbug.com/272548): Avoid -O3 in NaCl | 1074 # TODO(crbug.com/272548): Avoid -O3 in NaCl |
| 1096 ['nacl_target_arch=="none"', { | 1075 ['nacl_target_arch=="none"', { |
| 1097 'cflags': ['-O3'], | 1076 'cflags': ['-O3'], |
| 1098 'cflags!': ['-O2'], | 1077 'cflags!': ['-O2'], |
| 1099 }, { | 1078 }, { |
| 1100 'cflags': ['-O2'], | 1079 'cflags': ['-O2'], |
| 1101 'cflags!': ['-O3'], | 1080 'cflags!': ['-O3'], |
| 1102 }], | 1081 }], |
| 1103 ], | 1082 ], |
| 1104 }], | 1083 }], |
| 1105 ['OS=="android"', { | 1084 ['OS=="android"', { |
| 1106 'cflags!': [ | 1085 'cflags!': [ |
| 1107 '-O3', | 1086 '-O3', |
| 1108 '-Os', | 1087 '-Os', |
| 1109 ], | 1088 ], |
| 1110 'cflags': [ | 1089 'cflags': [ |
| 1111 '-fdata-sections', | 1090 '-fdata-sections', |
| 1112 '-ffunction-sections', | 1091 '-ffunction-sections', |
| 1113 '-O2', | 1092 '-O2', |
| 1114 ], | 1093 ], |
| 1115 'conditions': [ | |
| 1116 [ 'gcc_version==44 and clang==0', { | |
| 1117 'cflags': [ | |
| 1118 # Avoid crashes with gcc 4.4 in the v8 test suite. | |
| 1119 '-fno-tree-vrp', | |
| 1120 ], | |
| 1121 }], | |
| 1122 ], | |
| 1123 }], | 1094 }], |
| 1124 ['OS=="mac"', { | 1095 ['OS=="mac"', { |
| 1125 'xcode_settings': { | 1096 'xcode_settings': { |
| 1126 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 | 1097 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 |
| 1127 | 1098 |
| 1128 # -fstrict-aliasing. Mainline gcc | 1099 # -fstrict-aliasing. Mainline gcc |
| 1129 # enables this at -O2 and above, | 1100 # enables this at -O2 and above, |
| 1130 # but Apple gcc does not unless it | 1101 # but Apple gcc does not unless it |
| 1131 # is specified explicitly. | 1102 # is specified explicitly. |
| 1132 'GCC_STRICT_ALIASING': 'YES', | 1103 'GCC_STRICT_ALIASING': 'YES', |
| (...skipping 20 matching lines...) Expand all Loading... |
| 1153 'OptimizeReferences': '2', | 1124 'OptimizeReferences': '2', |
| 1154 'EnableCOMDATFolding': '2', | 1125 'EnableCOMDATFolding': '2', |
| 1155 }, | 1126 }, |
| 1156 }, | 1127 }, |
| 1157 }], # OS=="win" | 1128 }], # OS=="win" |
| 1158 ], # conditions | 1129 ], # conditions |
| 1159 }, # Release | 1130 }, # Release |
| 1160 }, # configurations | 1131 }, # configurations |
| 1161 }, # target_defaults | 1132 }, # target_defaults |
| 1162 } | 1133 } |
| OLD | NEW |