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

Side by Side Diff: base/base.gyp

Issue 357623003: Move default sanitizer options into build/ so that WebRTC can import them. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | base/debug/OWNERS » ('j') | build/common.gypi » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'includes': [ 9 'includes': [
10 '../build/win_precompile.gypi', 10 '../build/win_precompile.gypi',
(...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 ], 965 ],
966 'sources': [ 966 'sources': [
967 'test/run_all_perftests.cc', 967 'test/run_all_perftests.cc',
968 ], 968 ],
969 'direct_dependent_settings': { 969 'direct_dependent_settings': {
970 'defines': [ 970 'defines': [
971 'PERF_TEST', 971 'PERF_TEST',
972 ], 972 ],
973 }, 973 },
974 }, 974 },
975 {
976 'target_name': 'sanitizer_options',
977 'type': 'static_library',
978 'toolsets': ['host', 'target'],
979 'variables': {
980 # Every target is going to depend on sanitizer_options, so allow
981 # this one to depend on itself.
982 'prune_self_dependency': 1,
983 # Do not let 'none' targets depend on this one, they don't need to.
984 'link_dependency': 1,
985 },
986 'sources': [
987 'debug/sanitizer_options.cc',
988 ],
989 'include_dirs': [
990 '..',
991 ],
992 # Some targets may want to opt-out from ASan, TSan and MSan and link
993 # without the corresponding runtime libraries. We drop the libc++
994 # dependency and omit the compiler flags to avoid bringing instrumented
995 # code to those targets.
996 'conditions': [
997 ['use_custom_libcxx==1', {
998 'dependencies!': [
999 '../third_party/libc++/libc++.gyp:libcxx_proxy',
1000 ],
1001 }],
1002 ['tsan==1', {
1003 'sources': [
1004 'debug/tsan_suppressions.cc',
1005 ],
1006 }],
1007 ],
1008 'cflags/': [
1009 ['exclude', '-fsanitize='],
1010 ['exclude', '-fsanitize-'],
1011 ],
1012 'direct_dependent_settings': {
1013 'ldflags': [
1014 '-Wl,-u_sanitizer_options_link_helper',
1015 ],
1016 },
1017 },
1018 ], 975 ],
1019 'conditions': [ 976 'conditions': [
1020 ['OS!="ios"', { 977 ['OS!="ios"', {
1021 'targets': [ 978 'targets': [
1022 { 979 {
1023 'target_name': 'check_example', 980 'target_name': 'check_example',
1024 'type': 'executable', 981 'type': 'executable',
1025 'sources': [ 982 'sources': [
1026 'check_example.cc', 983 'check_example.cc',
1027 ], 984 ],
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
1496 'base_unittests.isolate', 1453 'base_unittests.isolate',
1497 ], 1454 ],
1498 'sources': [ 1455 'sources': [
1499 'base_unittests.isolate', 1456 'base_unittests.isolate',
1500 ], 1457 ],
1501 }, 1458 },
1502 ], 1459 ],
1503 }], 1460 }],
1504 ], 1461 ],
1505 } 1462 }
OLDNEW
« no previous file with comments | « no previous file | base/debug/OWNERS » ('j') | build/common.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698