OLD | NEW |
1 # Copyright 2016 The V8 project authors. All rights reserved. | 1 # Copyright 2016 The V8 project 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 # Please keep this file in sync with unittests.gyp. | 5 # Please keep this file in sync with unittests.gyp. |
6 | 6 |
7 import("../../gni/v8.gni") | 7 import("../../gni/v8.gni") |
8 | 8 |
9 executable("unittests") { | 9 executable("unittests") { |
10 testonly = true | 10 testonly = true |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 "//testing/gtest", | 158 "//testing/gtest", |
159 ] | 159 ] |
160 | 160 |
161 if (is_component_build) { | 161 if (is_component_build) { |
162 # compiler-unittests can't be built against a shared library, so we | 162 # compiler-unittests can't be built against a shared library, so we |
163 # need to depend on the underlying static target in that case. | 163 # need to depend on the underlying static target in that case. |
164 deps += [ "../..:v8_maybe_snapshot" ] | 164 deps += [ "../..:v8_maybe_snapshot" ] |
165 } else { | 165 } else { |
166 deps += [ "../..:v8" ] | 166 deps += [ "../..:v8" ] |
167 } | 167 } |
| 168 |
| 169 if (is_win) { |
| 170 # This warning is benignly triggered by the U16 and U32 macros in |
| 171 # bytecode-utils.h. |
| 172 # C4309: 'static_cast': truncation of constant value |
| 173 cflags = [ "/wd4309" ] |
| 174 |
| 175 # Suppress warnings about importing locally defined symbols. |
| 176 if (is_component_build) { |
| 177 ldflags = [ "/ignore:4049", "/ignore:4217" ] |
| 178 } |
| 179 } |
168 } | 180 } |
OLD | NEW |