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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
84 'v8_toolset_for_d8%': 'target', | 84 'v8_toolset_for_d8%': 'target', |
85 | 85 |
86 'host_os%': '<(OS)', | 86 'host_os%': '<(OS)', |
87 'werror%': '-Werror', | 87 'werror%': '-Werror', |
88 # For a shared library build, results in "libv8-<(soname_version).so". | 88 # For a shared library build, results in "libv8-<(soname_version).so". |
89 'soname_version%': '', | 89 'soname_version%': '', |
90 | 90 |
91 # Allow to suppress the array bounds warning (default is no suppression). | 91 # Allow to suppress the array bounds warning (default is no suppression). |
92 'wno_array_bounds%': '', | 92 'wno_array_bounds%': '', |
93 | 93 |
94 # Link-Time Optimizations | |
95 'use_lto%': 0, | |
96 | |
94 'variables': { | 97 'variables': { |
95 # This is set when building the Android WebView inside the Android build | 98 # This is set when building the Android WebView inside the Android build |
96 # system, using the 'android' gyp backend. | 99 # system, using the 'android' gyp backend. |
97 'android_webview_build%': 0, | 100 'android_webview_build%': 0, |
98 }, | 101 }, |
99 # Copy it out one scope. | 102 # Copy it out one scope. |
100 'android_webview_build%': '<(android_webview_build)', | 103 'android_webview_build%': '<(android_webview_build)', |
101 }, | 104 }, |
102 'conditions': [ | 105 'conditions': [ |
103 ['host_arch=="ia32" or host_arch=="x64" or clang==1', { | 106 ['host_arch=="ia32" or host_arch=="x64" or clang==1', { |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
234 'USE_EABI_HARDFLOAT=1', | 237 'USE_EABI_HARDFLOAT=1', |
235 ], | 238 ], |
236 }], | 239 }], |
237 [ 'arm_float_abi=="softfp" or arm_float_abi=="default"', { | 240 [ 'arm_float_abi=="softfp" or arm_float_abi=="default"', { |
238 'defines': [ | 241 'defines': [ |
239 'USE_EABI_HARDFLOAT=0', | 242 'USE_EABI_HARDFLOAT=0', |
240 ], | 243 ], |
241 }], | 244 }], |
242 ], | 245 ], |
243 }], | 246 }], |
247 # Disable LTO for v8 | |
ulan
2014/08/22 13:47:48
Could you please expand this commet explaining why
Fabrice (no longer in Chrome)
2014/08/22 14:13:24
Done.
| |
248 ['use_lto==1', { | |
249 'cflags!': [ | |
250 '-flto', | |
251 '-ffat-lto-objects', | |
252 ], | |
253 }], | |
244 ], | 254 ], |
245 }], # _toolset=="target" | 255 }], # _toolset=="target" |
246 ], | 256 ], |
247 }], # v8_target_arch=="arm" | 257 }], # v8_target_arch=="arm" |
248 ['v8_target_arch=="arm64"', { | 258 ['v8_target_arch=="arm64"', { |
249 'defines': [ | 259 'defines': [ |
250 'V8_TARGET_ARCH_ARM64', | 260 'V8_TARGET_ARCH_ARM64', |
251 ], | 261 ], |
252 }], | 262 }], |
253 ['v8_target_arch=="ia32"', { | 263 ['v8_target_arch=="ia32"', { |
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
951 'OptimizeReferences': '2', | 961 'OptimizeReferences': '2', |
952 'EnableCOMDATFolding': '2', | 962 'EnableCOMDATFolding': '2', |
953 }, | 963 }, |
954 }, | 964 }, |
955 }], # OS=="win" | 965 }], # OS=="win" |
956 ], # conditions | 966 ], # conditions |
957 }, # Release | 967 }, # Release |
958 }, # configurations | 968 }, # configurations |
959 }, # target_defaults | 969 }, # target_defaults |
960 } | 970 } |
OLD | NEW |