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

Side by Side Diff: test/unittests/BUILD.gn

Issue 2028353004: Suppress compiler and linker warnings in v8 test binaries (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Suppress linker warnings Created 4 years, 6 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 | « test/cctest/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « test/cctest/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698