OLD | NEW |
---|---|
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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
290 configs += [ | 290 configs += [ |
291 ":yasm_config", | 291 ":yasm_config", |
292 "//build/config/compiler:no_chromium_code", | 292 "//build/config/compiler:no_chromium_code", |
293 "//build/config/compiler:no_incompatible_pointer_warnings", | 293 "//build/config/compiler:no_incompatible_pointer_warnings", |
294 | 294 |
295 # Must be after no_chromium_code for warning flags to be ordered | 295 # Must be after no_chromium_code for warning flags to be ordered |
296 # correctly. | 296 # correctly. |
297 ":yasm_warnings", | 297 ":yasm_warnings", |
298 ] | 298 ] |
299 | 299 |
300 # Disable the WPO for yasm: crbug.com/604808 | |
brucedawson
2016/04/29 00:06:13
the WPO -> WPO
Sébastien Marchand
2016/04/29 14:15:39
Done.
| |
301 if (is_official_build && full_wpo_on_official) { | |
302 configs -= [ "//build/config/compiler:default_optimization" ] | |
303 configs += [ "//build/config/compiler:optimize_no_wpo" ] | |
304 } | |
305 | |
300 # Yasm generates a bunch of .c files which its source file #include. | 306 # Yasm generates a bunch of .c files which its source file #include. |
301 # Add the |target_gen_dir| into the include path so it can find them. | 307 # Add the |target_gen_dir| into the include path so it can find them. |
302 # Ideally, these generated .c files would be placed into a separate | 308 # Ideally, these generated .c files would be placed into a separate |
303 # directory, but the gen_x86_insn.py script does not make this easy. | 309 # directory, but the gen_x86_insn.py script does not make this easy. |
304 include_dirs = [ yasm_gen_include_dir ] | 310 include_dirs = [ yasm_gen_include_dir ] |
305 | 311 |
306 if (!is_win) { | 312 if (!is_win) { |
307 cflags = [ | 313 cflags = [ |
308 "-std=c89", | 314 "-std=c89", |
309 "-pedantic", | 315 "-pedantic", |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
525 | 531 |
526 # Output eventually #included by source/patched-yasm/frontends/yasm/x86id.c | 532 # Output eventually #included by source/patched-yasm/frontends/yasm/x86id.c |
527 outputs = [ | 533 outputs = [ |
528 "$yasm_gen_include_dir/x86insns.c", | 534 "$yasm_gen_include_dir/x86insns.c", |
529 "$yasm_gen_include_dir/x86insn_gas.gperf", | 535 "$yasm_gen_include_dir/x86insn_gas.gperf", |
530 "$yasm_gen_include_dir/x86insn_nasm.gperf", | 536 "$yasm_gen_include_dir/x86insn_nasm.gperf", |
531 ] | 537 ] |
532 args = [ rebase_path(yasm_gen_include_dir, root_build_dir) ] | 538 args = [ rebase_path(yasm_gen_include_dir, root_build_dir) ] |
533 } | 539 } |
534 } | 540 } |
OLD | NEW |