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

Side by Side Diff: build/common.gypi

Issue 781763003: Roll Clang 218707:223109 (+r223211, +r223219, -r220714) (Closed) Base URL: precise:/work/chromium/src@clang_roll_223109
Patch Set: Rebase Created 6 years 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
« no previous file with comments | « no previous file | build/config/compiler/BUILD.gn » ('j') | no next file with comments »
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 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 2503 matching lines...) Expand 10 before | Expand all | Expand 10 after
2514 # This warns on using ints as initializers for floats in 2514 # This warns on using ints as initializers for floats in
2515 # initializer lists (e.g. |int a = f(); CGSize s = { a, a };|), 2515 # initializer lists (e.g. |int a = f(); CGSize s = { a, a };|),
2516 # which happens in several places in chrome code. Not sure if 2516 # which happens in several places in chrome code. Not sure if
2517 # this is worth fixing. 2517 # this is worth fixing.
2518 '-Wno-c++11-narrowing', 2518 '-Wno-c++11-narrowing',
2519 2519
2520 # Clang considers the `register` keyword as deprecated, but e.g. 2520 # Clang considers the `register` keyword as deprecated, but e.g.
2521 # code generated by flex (used in angle) contains that keyword. 2521 # code generated by flex (used in angle) contains that keyword.
2522 # http://crbug.com/255186 2522 # http://crbug.com/255186
2523 '-Wno-deprecated-register', 2523 '-Wno-deprecated-register',
2524
2525 # TODO(hans): Get this cleaned up.
2526 '-Wno-inconsistent-missing-override',
2524 ], 2527 ],
2525 }, 2528 },
2526 'includes': [ 'set_clang_warning_flags.gypi', ], 2529 'includes': [ 'set_clang_warning_flags.gypi', ],
2527 'defines': [ 2530 'defines': [
2528 # Don't use deprecated V8 APIs anywhere. 2531 # Don't use deprecated V8 APIs anywhere.
2529 'V8_DEPRECATION_WARNINGS', 2532 'V8_DEPRECATION_WARNINGS',
2530 ], 2533 ],
2531 'include_dirs': [ 2534 'include_dirs': [
2532 '<(SHARED_INTERMEDIATE_DIR)', 2535 '<(SHARED_INTERMEDIATE_DIR)',
2533 ], 2536 ],
(...skipping 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after
4228 'defines': [ 4231 'defines': [
4229 'UNDEFINED_SANITIZER', 4232 'UNDEFINED_SANITIZER',
4230 ], 4233 ],
4231 }], 4234 }],
4232 ], 4235 ],
4233 }], 4236 }],
4234 ['asan_coverage!=0', { 4237 ['asan_coverage!=0', {
4235 'target_conditions': [ 4238 'target_conditions': [
4236 ['_toolset=="target"', { 4239 ['_toolset=="target"', {
4237 'cflags': [ 4240 'cflags': [
4238 '-mllvm -asan-coverage=<(asan_coverage)', 4241 '-fsanitize-coverage=<(asan_coverage)',
4239 ], 4242 ],
4240 }], 4243 }],
4241 ], 4244 ],
4242 }], 4245 }],
4243 ['asan_field_padding!=0', { 4246 ['asan_field_padding!=0', {
4244 'target_conditions': [ 4247 'target_conditions': [
4245 ['_toolset=="target"', { 4248 ['_toolset=="target"', {
4246 'cflags': [ 4249 'cflags': [
4247 '-fsanitize-address-field-padding=<(asan_field_padding)', 4250 '-fsanitize-address-field-padding=<(asan_field_padding)',
4248 ], 4251 ],
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
4599 ], 4602 ],
4600 }], 4603 }],
4601 ['asan==1', { 4604 ['asan==1', {
4602 'cflags': [ 4605 'cflags': [
4603 # Android build relies on -Wl,--gc-sections removing 4606 # Android build relies on -Wl,--gc-sections removing
4604 # unreachable code. ASan instrumentation for globals inhibits 4607 # unreachable code. ASan instrumentation for globals inhibits
4605 # this and results in a library with unresolvable relocations. 4608 # this and results in a library with unresolvable relocations.
4606 # TODO(eugenis): find a way to reenable this. 4609 # TODO(eugenis): find a way to reenable this.
4607 '-mllvm -asan-globals=0', 4610 '-mllvm -asan-globals=0',
4608 ], 4611 ],
4609 'conditions': [
4610 ['target_arch=="arm"', {
4611 'ldflags': [
4612 # TODO(hans): The ASan runtime is no longer automatically
4613 # added to the link line when using -nostdlib. Can we
4614 # stop adding -nostdlib? (crbug.com/423429)
4615 '<!(cd <(DEPTH) && pwd -P)/<(make_clang_dir)/lib/clang/3.6 .0/lib/linux/libclang_rt.asan-arm-android.so',
4616 ],
4617 }],
4618 ],
4619 }], 4612 }],
4620 ['android_webview_build==0', { 4613 ['android_webview_build==0', {
4621 'defines': [ 4614 'defines': [
4622 # The NDK has these things, but doesn't define the constants 4615 # The NDK has these things, but doesn't define the constants
4623 # to say that it does. Define them here instead. 4616 # to say that it does. Define them here instead.
4624 'HAVE_SYS_UIO_H', 4617 'HAVE_SYS_UIO_H',
4625 ], 4618 ],
4626 'cflags': [ 4619 'cflags': [
4627 '--sysroot=<(android_ndk_sysroot)', 4620 '--sysroot=<(android_ndk_sysroot)',
4628 ], 4621 ],
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
4901 'OTHER_CFLAGS': [ 4894 'OTHER_CFLAGS': [
4902 '-fsanitize=address', 4895 '-fsanitize=address',
4903 '-gline-tables-only', 4896 '-gline-tables-only',
4904 ], 4897 ],
4905 }, 4898 },
4906 }], 4899 }],
4907 ['asan_coverage!=0', { 4900 ['asan_coverage!=0', {
4908 'target_conditions': [ 4901 'target_conditions': [
4909 ['_toolset=="target"', { 4902 ['_toolset=="target"', {
4910 'cflags': [ 4903 'cflags': [
4911 '-mllvm -asan-coverage=<(asan_coverage)', 4904 '-fsanitize-coverage=<(asan_coverage)',
4912 ], 4905 ],
4913 }], 4906 }],
4914 ], 4907 ],
4915 }], 4908 }],
4916 ], 4909 ],
4917 'target_conditions': [ 4910 'target_conditions': [
4918 ['_type!="static_library"', { 4911 ['_type!="static_library"', {
4919 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, 4912 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
4920 'conditions': [ 4913 'conditions': [
4921 ['asan==1', { 4914 ['asan==1', {
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after
5837 # settings in target dicts. SYMROOT is a special case, because many other 5830 # settings in target dicts. SYMROOT is a special case, because many other
5838 # Xcode variables depend on it, including variables such as 5831 # Xcode variables depend on it, including variables such as
5839 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5832 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5840 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5833 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5841 # files to appear (when present) in the UI as actual files and not red 5834 # files to appear (when present) in the UI as actual files and not red
5842 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5835 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5843 # and therefore SYMROOT, needs to be set at the project level. 5836 # and therefore SYMROOT, needs to be set at the project level.
5844 'SYMROOT': '<(DEPTH)/xcodebuild', 5837 'SYMROOT': '<(DEPTH)/xcodebuild',
5845 }, 5838 },
5846 } 5839 }
OLDNEW
« no previous file with comments | « no previous file | build/config/compiler/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698