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

Side by Side Diff: build/standalone.gypi

Issue 196943004: Add ASAN option to stand-alone gyp config. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: More improvements. Created 6 years, 9 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 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 16 matching lines...) Expand all
27 27
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 'visibility%': 'hidden', 38 'visibility%': 'hidden',
38 'v8_enable_backtrace%': 0, 39 'v8_enable_backtrace%': 0,
39 'v8_enable_i18n_support%': 1, 40 'v8_enable_i18n_support%': 1,
40 'v8_deprecation_warnings': 1, 41 'v8_deprecation_warnings': 1,
41 'msvs_multi_core_compile%': '1', 42 'msvs_multi_core_compile%': '1',
42 'mac_deployment_target%': '10.5', 43 'mac_deployment_target%': '10.5',
43 'variables': { 44 'variables': {
44 'variables': { 45 'variables': {
45 'variables': { 46 'variables': {
46 'conditions': [ 47 'conditions': [
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 'VCCLCompilerTool': { 163 'VCCLCompilerTool': {
163 'WarnAsError': 'false', 164 'WarnAsError': 'false',
164 }, 165 },
165 }, 166 },
166 }], 167 }],
167 ], 168 ],
168 }], 169 }],
169 ], 170 ],
170 }, 171 },
171 'conditions': [ 172 'conditions': [
173 ['asan==1', {
174 'target_defaults': {
jochen (gone - plz use gerrit) 2014/03/13 10:12:45 does it also work if you use conditions: asan==1:
175 'cflags_cc+': [
176 '-fno-omit-frame-pointer',
177 '-gline-tables-only',
178 '-fsanitize=address',
179 '-w', # http://crbug.com/162783
180 ],
181 'cflags_cc!': [
182 '-fomit-frame-pointer',
183 ],
184 'ldflags': [
185 '-fsanitize=address',
186 ],
187 }
188 }],
172 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ 189 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
173 or OS=="netbsd"', { 190 or OS=="netbsd"', {
174 'target_defaults': { 191 'target_defaults': {
175 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', 192 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter',
176 '-pthread', '-fno-exceptions', '-pedantic' ], 193 '-pthread', '-fno-exceptions', '-pedantic' ],
177 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti' ], 194 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti' ],
178 'ldflags': [ '-pthread', ], 195 'ldflags': [ '-pthread', ],
179 'conditions': [ 196 'conditions': [
180 [ 'OS=="linux"', { 197 [ 'OS=="linux"', {
181 'cflags': [ '-ansi' ], 198 'cflags': [ '-ansi' ],
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 ], 347 ],
331 'target_conditions': [ 348 'target_conditions': [
332 ['_type!="static_library"', { 349 ['_type!="static_library"', {
333 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, 350 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
334 }], 351 }],
335 ], # target_conditions 352 ], # target_conditions
336 }, # target_defaults 353 }, # target_defaults
337 }], # OS=="mac" 354 }], # OS=="mac"
338 ], 355 ],
339 } 356 }
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