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: build/config/compiler/BUILD.gn

Issue 2145243003: Revert of Disable "taking address of packed member" clang warning. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « build/common.gypi ('k') | 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 (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/chrome_build.gni") 6 import("//build/config/chrome_build.gni")
7 import("//build/config/compiler/compiler.gni") 7 import("//build/config/compiler/compiler.gni")
8 import("//build/config/nacl/config.gni") 8 import("//build/config/nacl/config.gni")
9 import("//build/toolchain/cc_wrapper.gni") 9 import("//build/toolchain/cc_wrapper.gni")
10 import("//build/toolchain/toolchain.gni") 10 import("//build/toolchain/toolchain.gni")
(...skipping 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 if (!is_nacl && !use_xcode_clang) { 1015 if (!is_nacl && !use_xcode_clang) {
1016 # Flags NaCl (Clang 3.7) and Xcode 7.3 (Clang clang-703.0.31) do not 1016 # Flags NaCl (Clang 3.7) and Xcode 7.3 (Clang clang-703.0.31) do not
1017 # recognize. 1017 # recognize.
1018 cflags += [ 1018 cflags += [
1019 # TODO(thakis): https://crbug.com/604888 1019 # TODO(thakis): https://crbug.com/604888
1020 "-Wno-undefined-var-template", 1020 "-Wno-undefined-var-template",
1021 1021
1022 # TODO(thakis): https://crbug.com/617318 1022 # TODO(thakis): https://crbug.com/617318
1023 "-Wno-nonportable-include-path", 1023 "-Wno-nonportable-include-path",
1024 ] 1024 ]
1025
1026 if (llvm_force_head_revision) {
1027 cflags += [
1028 # TODO(eugenis): Clean up, http://crbug.com/619640
1029 "-Wno-address-of-packed-member",
1030 ]
1031 }
1032 } 1025 }
1033 } 1026 }
1034 } 1027 }
1035 1028
1036 # chromium_code --------------------------------------------------------------- 1029 # chromium_code ---------------------------------------------------------------
1037 # 1030 #
1038 # Toggles between higher and lower warnings for code that is (or isn't) 1031 # Toggles between higher and lower warnings for code that is (or isn't)
1039 # part of Chromium. 1032 # part of Chromium.
1040 1033
1041 config("chromium_code") { 1034 config("chromium_code") {
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
1573 1566
1574 if (is_ios || is_mac) { 1567 if (is_ios || is_mac) {
1575 # On Mac and iOS, this enables support for ARC (automatic ref-counting). 1568 # On Mac and iOS, this enables support for ARC (automatic ref-counting).
1576 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. 1569 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html.
1577 config("enable_arc") { 1570 config("enable_arc") {
1578 common_flags = [ "-fobjc-arc" ] 1571 common_flags = [ "-fobjc-arc" ]
1579 cflags_objc = common_flags 1572 cflags_objc = common_flags
1580 cflags_objcc = common_flags 1573 cflags_objcc = common_flags
1581 } 1574 }
1582 } 1575 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698