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

Side by Side Diff: build/config/compiler/BUILD.gn

Issue 2316343002: Clang Win: turn on -Wno-ignored-pragmas (Closed)
Patch Set: Created 4 years, 3 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 | « 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 (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 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 930
931 # Building with Clang on Windows is a work in progress and very 931 # Building with Clang on Windows is a work in progress and very
932 # experimental. See crbug.com/82385. 932 # experimental. See crbug.com/82385.
933 # Keep this in sync with the similar block in build/common.gypi 933 # Keep this in sync with the similar block in build/common.gypi
934 if (is_clang) { 934 if (is_clang) {
935 cflags += [ 935 cflags += [
936 # TODO(hans): Make this list shorter eventually, http://crbug.com/504657 936 # TODO(hans): Make this list shorter eventually, http://crbug.com/504657
937 "-Wno-microsoft-enum-value", # http://crbug.com/505296 937 "-Wno-microsoft-enum-value", # http://crbug.com/505296
938 "-Wno-unknown-pragmas", # http://crbug.com/505314 938 "-Wno-unknown-pragmas", # http://crbug.com/505314
939 "-Wno-microsoft-cast", # http://crbug.com/550065 939 "-Wno-microsoft-cast", # http://crbug.com/550065
940 "-Wno-ignored-pragmas", # http://crbug.com/644841
940 ] 941 ]
941 } 942 }
942 } else { 943 } else {
943 if (is_mac && !is_nacl) { 944 if (is_mac && !is_nacl) {
944 # When compiling Objective-C, warns if a method is used whose 945 # When compiling Objective-C, warns if a method is used whose
945 # availability is newer than the deployment target. This is not 946 # availability is newer than the deployment target. This is not
946 # required when compiling Chrome for iOS. 947 # required when compiling Chrome for iOS.
947 cflags += [ "-Wpartial-availability" ] 948 cflags += [ "-Wpartial-availability" ]
948 } 949 }
949 950
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
1600 1601
1601 if (is_ios || is_mac) { 1602 if (is_ios || is_mac) {
1602 # On Mac and iOS, this enables support for ARC (automatic ref-counting). 1603 # On Mac and iOS, this enables support for ARC (automatic ref-counting).
1603 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. 1604 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html.
1604 config("enable_arc") { 1605 config("enable_arc") {
1605 common_flags = [ "-fobjc-arc" ] 1606 common_flags = [ "-fobjc-arc" ]
1606 cflags_objc = common_flags 1607 cflags_objc = common_flags
1607 cflags_objcc = common_flags 1608 cflags_objcc = common_flags
1608 } 1609 }
1609 } 1610 }
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