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

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

Issue 1614523003: -ansi means -std=c89, so replace -std=gnu99 -ansi with it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn too Created 4 years, 11 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 | 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 ] 280 ]
281 281
282 # Yasm generates a bunch of .c files which its source file #include. 282 # Yasm generates a bunch of .c files which its source file #include.
283 # Add the |target_gen_dir| into the include path so it can find them. 283 # Add the |target_gen_dir| into the include path so it can find them.
284 # Ideally, these generated .c files would be placed into a separate 284 # Ideally, these generated .c files would be placed into a separate
285 # directory, but the gen_x86_insn.py script does not make this easy. 285 # directory, but the gen_x86_insn.py script does not make this easy.
286 include_dirs = [ yasm_gen_include_dir ] 286 include_dirs = [ yasm_gen_include_dir ]
287 287
288 if (!is_win) { 288 if (!is_win) {
289 cflags = [ 289 cflags = [
290 "-ansi", 290 "-std=c89",
291 "-pedantic", 291 "-pedantic",
292 ] 292 ]
293 } 293 }
294 294
295 # TODO(ajwong): This should take most of the generated output as 295 # TODO(ajwong): This should take most of the generated output as
296 # inputs. 296 # inputs.
297 deps = [ 297 deps = [
298 ":compile_gperf", 298 ":compile_gperf",
299 ":compile_gperf_for_include", 299 ":compile_gperf_for_include",
300 ":compile_nasm_macros", 300 ":compile_nasm_macros",
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 504
505 # Output eventually #included by source/patched-yasm/frontends/yasm/x86id.c 505 # Output eventually #included by source/patched-yasm/frontends/yasm/x86id.c
506 outputs = [ 506 outputs = [
507 "$yasm_gen_include_dir/x86insns.c", 507 "$yasm_gen_include_dir/x86insns.c",
508 "$yasm_gen_include_dir/x86insn_gas.gperf", 508 "$yasm_gen_include_dir/x86insn_gas.gperf",
509 "$yasm_gen_include_dir/x86insn_nasm.gperf", 509 "$yasm_gen_include_dir/x86insn_nasm.gperf",
510 ] 510 ]
511 args = [ rebase_path(yasm_gen_include_dir, root_build_dir) ] 511 args = [ rebase_path(yasm_gen_include_dir, root_build_dir) ]
512 } 512 }
513 } 513 }
OLDNEW
« no previous file with comments | « no previous file | third_party/yasm/yasm.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698