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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 } |
OLD | NEW |