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

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

Issue 1236863009: clang/win: Enable -Wunused-local-typedef (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unsetupset Created 5 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 | « third_party/mesa/mesa.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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 "$target_gen_dir/module.c", 246 "$target_gen_dir/module.c",
247 ] 247 ]
248 248
249 configs -= [ "//build/config/compiler:chromium_code" ] 249 configs -= [ "//build/config/compiler:chromium_code" ]
250 configs += [ 250 configs += [
251 ":yasm_config", 251 ":yasm_config",
252 "//build/config/compiler:no_chromium_code", 252 "//build/config/compiler:no_chromium_code",
253 "//build/config/compiler:no_incompatible_pointer_warnings", 253 "//build/config/compiler:no_incompatible_pointer_warnings",
254 ] 254 ]
255 255
256 config("yasm_warnings") {
257 if (is_clang) {
258 cflags = [
259 # reg3264type in x86expr.c is unused.
260 "-Wno-unused-local-typedef",
261 ]
262 }
263 }
264 configs += [ ":yasm_warnings" ]
265
256 # Yasm generates a bunch of .c files which its source file #include. 266 # Yasm generates a bunch of .c files which its source file #include.
257 # Add the |target_gen_dir| into the include path so it can find them. 267 # Add the |target_gen_dir| into the include path so it can find them.
258 # Ideally, these generated .c files would be placed into a separate 268 # Ideally, these generated .c files would be placed into a separate
259 # directory, but the gen_x86_insn.py script does not make this easy. 269 # directory, but the gen_x86_insn.py script does not make this easy.
260 include_dirs = [ yasm_gen_include_dir ] 270 include_dirs = [ yasm_gen_include_dir ]
261 271
262 if (!is_win) { 272 if (!is_win) {
263 cflags = [ 273 cflags = [
264 "-ansi", 274 "-ansi",
265 "-pedantic", 275 "-pedantic",
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 488
479 # Output eventually #included by source/patched-yasm/frontends/yasm/x86id.c 489 # Output eventually #included by source/patched-yasm/frontends/yasm/x86id.c
480 outputs = [ 490 outputs = [
481 "$yasm_gen_include_dir/x86insns.c", 491 "$yasm_gen_include_dir/x86insns.c",
482 "$yasm_gen_include_dir/x86insn_gas.gperf", 492 "$yasm_gen_include_dir/x86insn_gas.gperf",
483 "$yasm_gen_include_dir/x86insn_nasm.gperf", 493 "$yasm_gen_include_dir/x86insn_nasm.gperf",
484 ] 494 ]
485 args = [ rebase_path(yasm_gen_include_dir, root_build_dir) ] 495 args = [ rebase_path(yasm_gen_include_dir, root_build_dir) ]
486 } 496 }
487 } 497 }
OLDNEW
« no previous file with comments | « third_party/mesa/mesa.gyp ('k') | third_party/yasm/yasm.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698