| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 'generate_files', # Needed to generate gperf and instruction files. | 70 'generate_files', # Needed to generate gperf and instruction files. |
| 71 'genstring', | 71 'genstring', |
| 72 're2c', | 72 're2c', |
| 73 ], | 73 ], |
| 74 'variables': { | 74 'variables': { |
| 75 'clang_warning_flags': [ | 75 'clang_warning_flags': [ |
| 76 # yasm passes a `const elf_machine_sym*` through `void*`. | 76 # yasm passes a `const elf_machine_sym*` through `void*`. |
| 77 '-Wno-incompatible-pointer-types', | 77 '-Wno-incompatible-pointer-types', |
| 78 ], | 78 ], |
| 79 }, | 79 }, |
| 80 'conditions': [ |
| 81 ['OS=="win"', { |
| 82 # As of VS 2013 Update 3, building this project with /analyze hits an |
| 83 # internal compiler error on elf-x86-amd64.c in release builds with |
| 84 # the amd64_x86 compiler. This halts the build and prevents subsequent |
| 85 # analysis. Therefore, /analyze is disabled for this project. See this |
| 86 # bug for details: |
| 87 # https://connect.microsoft.com/VisualStudio/feedback/details/1014799/
internal-compiler-error-when-using-analyze |
| 88 'msvs_settings': { |
| 89 'VCCLCompilerTool': { |
| 90 'AdditionalOptions!': [ '/analyze' ] |
| 91 }, |
| 92 }, |
| 93 }], |
| 94 ], |
| 80 'sources': [ | 95 'sources': [ |
| 81 'source/patched-yasm/frontends/yasm/yasm-options.c', | 96 'source/patched-yasm/frontends/yasm/yasm-options.c', |
| 82 'source/patched-yasm/frontends/yasm/yasm.c', | 97 'source/patched-yasm/frontends/yasm/yasm.c', |
| 83 'source/patched-yasm/libyasm/assocdat.c', | 98 'source/patched-yasm/libyasm/assocdat.c', |
| 84 'source/patched-yasm/libyasm/bc-align.c', | 99 'source/patched-yasm/libyasm/bc-align.c', |
| 85 'source/patched-yasm/libyasm/bc-data.c', | 100 'source/patched-yasm/libyasm/bc-data.c', |
| 86 'source/patched-yasm/libyasm/bc-incbin.c', | 101 'source/patched-yasm/libyasm/bc-incbin.c', |
| 87 'source/patched-yasm/libyasm/bc-org.c', | 102 'source/patched-yasm/libyasm/bc-org.c', |
| 88 'source/patched-yasm/libyasm/bc-reserve.c', | 103 'source/patched-yasm/libyasm/bc-reserve.c', |
| 89 'source/patched-yasm/libyasm/bitvect.c', | 104 'source/patched-yasm/libyasm/bitvect.c', |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 'include_dirs': [ | 568 'include_dirs': [ |
| 554 '<@(yasm_include_dirs)', | 569 '<@(yasm_include_dirs)', |
| 555 | 570 |
| 556 ], | 571 ], |
| 557 'cflags': [ | 572 'cflags': [ |
| 558 '-std=gnu99', | 573 '-std=gnu99', |
| 559 ], | 574 ], |
| 560 }, | 575 }, |
| 561 ], | 576 ], |
| 562 } | 577 } |
| OLD | NEW |