OLD | NEW |
---|---|
1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 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 17 matching lines...) Expand all Loading... | |
28 # Definitions to be used when building stand-alone V8 binaries. | 28 # Definitions to be used when building stand-alone V8 binaries. |
29 | 29 |
30 { | 30 { |
31 # We need to include toolchain.gypi here for third-party sources that don't | 31 # We need to include toolchain.gypi here for third-party sources that don't |
32 # directly include it themselves. | 32 # directly include it themselves. |
33 'includes': ['toolchain.gypi'], | 33 'includes': ['toolchain.gypi'], |
34 'variables': { | 34 'variables': { |
35 'component%': 'static_library', | 35 'component%': 'static_library', |
36 'clang%': 0, | 36 'clang%': 0, |
37 'asan%': 0, | 37 'asan%': 0, |
38 'msan%': 0, | |
38 'visibility%': 'hidden', | 39 'visibility%': 'hidden', |
39 'v8_enable_backtrace%': 0, | 40 'v8_enable_backtrace%': 0, |
40 'v8_enable_i18n_support%': 1, | 41 'v8_enable_i18n_support%': 1, |
41 'v8_deprecation_warnings': 1, | 42 'v8_deprecation_warnings': 1, |
42 'msvs_multi_core_compile%': '1', | 43 'msvs_multi_core_compile%': '1', |
43 'mac_deployment_target%': '10.5', | 44 'mac_deployment_target%': '10.5', |
44 'variables': { | 45 'variables': { |
45 'variables': { | 46 'variables': { |
46 'variables': { | 47 'variables': { |
47 'conditions': [ | 48 'conditions': [ |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
178 '-w', # http://crbug.com/162783 | 179 '-w', # http://crbug.com/162783 |
179 ], | 180 ], |
180 'cflags_cc!': [ | 181 'cflags_cc!': [ |
181 '-fomit-frame-pointer', | 182 '-fomit-frame-pointer', |
182 ], | 183 ], |
183 'ldflags': [ | 184 'ldflags': [ |
184 '-fsanitize=address', | 185 '-fsanitize=address', |
185 ], | 186 ], |
186 }, | 187 }, |
187 }], | 188 }], |
189 ['msan==1', { | |
190 'target_defaults': { | |
191 'cflags_cc+': [ | |
192 '-fno-omit-frame-pointer', | |
193 '-fsanitize-memory-track-origins=2', | |
earthdok
2014/07/01 12:13:22
-fsanitize-memory-track-origins can take values fr
| |
194 '-fsanitize=memory', | |
195 '-w', # http://crbug.com/162783 | |
earthdok
2014/07/01 12:13:22
The linked issue refers to ASan, not MSan. We don'
| |
196 ], | |
197 'cflags_cc!': [ | |
198 '-fomit-frame-pointer', | |
199 ], | |
200 'ldflags': [ | |
201 '-fsanitize=memory', | |
202 ], | |
203 }, | |
204 }], | |
188 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 205 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
189 or OS=="netbsd"', { | 206 or OS=="netbsd"', { |
190 'target_defaults': { | 207 'target_defaults': { |
191 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', | 208 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', |
192 '-Wno-long-long', '-pthread', '-fno-exceptions', | 209 '-Wno-long-long', '-pthread', '-fno-exceptions', |
193 '-pedantic' ], | 210 '-pedantic' ], |
194 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti' ], | 211 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti' ], |
195 'ldflags': [ '-pthread', ], | 212 'ldflags': [ '-pthread', ], |
196 'conditions': [ | 213 'conditions': [ |
197 [ 'OS=="linux"', { | 214 [ 'OS=="linux"', { |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
352 ], | 369 ], |
353 'target_conditions': [ | 370 'target_conditions': [ |
354 ['_type!="static_library"', { | 371 ['_type!="static_library"', { |
355 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 372 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
356 }], | 373 }], |
357 ], # target_conditions | 374 ], # target_conditions |
358 }, # target_defaults | 375 }, # target_defaults |
359 }], # OS=="mac" | 376 }], # OS=="mac" |
360 ], | 377 ], |
361 } | 378 } |
OLD | NEW |