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

Side by Side Diff: third_party/yasm/BUILD.gn

Issue 1269293003: Explicitly pass -Wno-unused-function to the targets that need it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gnnnnnnnnnnn Created 5 years, 4 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 | « third_party/usrsctp/usrsctp.gyp ('k') | third_party/yasm/yasm.gyp » ('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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 # The yasm build process creates a slew of small C subprograms that 5 # The yasm build process creates a slew of small C subprograms that
6 # dynamically generate files at various point in the build process. This makes 6 # dynamically generate files at various point in the build process. This makes
7 # the build integration moderately complex. 7 # the build integration moderately complex.
8 # 8 #
9 # There are three classes of dynamically generated files: 9 # There are three classes of dynamically generated files:
10 # 1) C source files that should be included in the build (eg., lc3bid.c) 10 # 1) C source files that should be included in the build (eg., lc3bid.c)
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 "source/patched-yasm/tools/re2c/main.c", 143 "source/patched-yasm/tools/re2c/main.c",
144 "source/patched-yasm/tools/re2c/mbo_getopt.c", 144 "source/patched-yasm/tools/re2c/mbo_getopt.c",
145 "source/patched-yasm/tools/re2c/parser.c", 145 "source/patched-yasm/tools/re2c/parser.c",
146 "source/patched-yasm/tools/re2c/scanner.c", 146 "source/patched-yasm/tools/re2c/scanner.c",
147 "source/patched-yasm/tools/re2c/substr.c", 147 "source/patched-yasm/tools/re2c/substr.c",
148 "source/patched-yasm/tools/re2c/translate.c", 148 "source/patched-yasm/tools/re2c/translate.c",
149 ] 149 ]
150 150
151 config("re2c_warnings") { 151 config("re2c_warnings") {
152 # re2c is missing CLOSEVOP from one switch. 152 # re2c is missing CLOSEVOP from one switch.
153 if (is_posix || is_clang) { 153 if (is_clang) {
154 cflags = [ "-Wno-switch" ] 154 cflags = [
155 # re2c is missing CLOSEVOP from one switch.
156 "-Wno-switch",
157
158 # re2c contains many static functions in headers (because it's
159 # a C library predating C99.)
160 "-Wno-unused-function",
161 ]
155 } 162 }
156 } 163 }
157
158 configs -= [ "//build/config/compiler:chromium_code" ] 164 configs -= [ "//build/config/compiler:chromium_code" ]
159 configs += [ 165 configs += [
160 ":yasm_config", 166 ":yasm_config",
161 "//build/config/compiler:no_chromium_code", 167 "//build/config/compiler:no_chromium_code",
162 ":re2c_warnings", 168 ":re2c_warnings",
163 ] 169 ]
164 deps = [ 170 deps = [
165 "//build/config/sanitizers:deps", 171 "//build/config/sanitizers:deps",
166 ] 172 ]
167 } 173 }
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 497
492 # Output eventually #included by source/patched-yasm/frontends/yasm/x86id.c 498 # Output eventually #included by source/patched-yasm/frontends/yasm/x86id.c
493 outputs = [ 499 outputs = [
494 "$yasm_gen_include_dir/x86insns.c", 500 "$yasm_gen_include_dir/x86insns.c",
495 "$yasm_gen_include_dir/x86insn_gas.gperf", 501 "$yasm_gen_include_dir/x86insn_gas.gperf",
496 "$yasm_gen_include_dir/x86insn_nasm.gperf", 502 "$yasm_gen_include_dir/x86insn_nasm.gperf",
497 ] 503 ]
498 args = [ rebase_path(yasm_gen_include_dir, root_build_dir) ] 504 args = [ rebase_path(yasm_gen_include_dir, root_build_dir) ]
499 } 505 }
500 } 506 }
OLDNEW
« no previous file with comments | « third_party/usrsctp/usrsctp.gyp ('k') | third_party/yasm/yasm.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698