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

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

Issue 2074003002: Update GN build to use v8_target_cpu instead of v8_target_arch. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
« build_overrides/v8.gni ('K') | « 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 v8_executable("unittests") { 9 v8_executable("unittests") {
10 testonly = true 10 testonly = true
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 "wasm/control-transfer-unittest.cc", 111 "wasm/control-transfer-unittest.cc",
112 "wasm/decoder-unittest.cc", 112 "wasm/decoder-unittest.cc",
113 "wasm/encoder-unittest.cc", 113 "wasm/encoder-unittest.cc",
114 "wasm/leb-helper-unittest.cc", 114 "wasm/leb-helper-unittest.cc",
115 "wasm/loop-assignment-analysis-unittest.cc", 115 "wasm/loop-assignment-analysis-unittest.cc",
116 "wasm/module-decoder-unittest.cc", 116 "wasm/module-decoder-unittest.cc",
117 "wasm/switch-logic-unittest.cc", 117 "wasm/switch-logic-unittest.cc",
118 "wasm/wasm-macro-gen-unittest.cc", 118 "wasm/wasm-macro-gen-unittest.cc",
119 ] 119 ]
120 120
121 if (v8_target_arch == "arm") { 121 if (v8_target_cpu == "arm") {
122 sources += [ "compiler/arm/instruction-selector-arm-unittest.cc" ] 122 sources += [ "compiler/arm/instruction-selector-arm-unittest.cc" ]
123 } else if (v8_target_arch == "arm64") { 123 } else if (v8_target_cpu == "arm64") {
124 sources += [ "compiler/arm64/instruction-selector-arm64-unittest.cc" ] 124 sources += [ "compiler/arm64/instruction-selector-arm64-unittest.cc" ]
125 } else if (v8_target_arch == "x86") { 125 } else if (v8_target_cpu == "x86") {
126 sources += [ "compiler/ia32/instruction-selector-ia32-unittest.cc" ] 126 sources += [ "compiler/ia32/instruction-selector-ia32-unittest.cc" ]
127 } else if (v8_target_arch == "mips" || v8_target_arch == "mipsel") { 127 } else if (v8_target_cpu == "mips" || v8_target_cpu == "mipsel") {
128 sources += [ "compiler/mips/instruction-selector-mips-unittest.cc" ] 128 sources += [ "compiler/mips/instruction-selector-mips-unittest.cc" ]
129 } else if (v8_target_arch == "mips64" || v8_target_arch == "mips64el") { 129 } else if (v8_target_cpu == "mips64" || v8_target_cpu == "mips64el") {
130 sources += [ "compiler/mips64/instruction-selector-mips64-unittest.cc" ] 130 sources += [ "compiler/mips64/instruction-selector-mips64-unittest.cc" ]
131 } else if (v8_target_arch == "x64") { 131 } else if (v8_target_cpu == "x64") {
132 sources += [ "compiler/x64/instruction-selector-x64-unittest.cc" ] 132 sources += [ "compiler/x64/instruction-selector-x64-unittest.cc" ]
133 } else if (v8_target_arch == "ppc" || v8_target_arch == "ppc64") { 133 } else if (v8_target_cpu == "ppc" || v8_target_cpu == "ppc64") {
134 sources += [ "compiler/ppc/instruction-selector-ppc-unittest.cc" ] 134 sources += [ "compiler/ppc/instruction-selector-ppc-unittest.cc" ]
135 } else if (v8_target_arch == "s390" || v8_target_arch == "s390x") { 135 } else if (v8_target_cpu == "s390" || v8_target_cpu == "s390x") {
136 sources += [ "compiler/s390/instruction-selector-s390-unittest.cc" ] 136 sources += [ "compiler/s390/instruction-selector-s390-unittest.cc" ]
137 } 137 }
138 138
139 configs = [ 139 configs = [
140 "../..:external_config", 140 "../..:external_config",
141 "../..:internal_config_base", 141 "../..:internal_config_base",
142 ] 142 ]
143 143
144 # TODO(machenbach): Translate from gyp. 144 # TODO(machenbach): Translate from gyp.
145 #['OS=="aix"', { 145 #['OS=="aix"', {
(...skipping 24 matching lines...) Expand all
170 170
171 # Suppress warnings about importing locally defined symbols. 171 # Suppress warnings about importing locally defined symbols.
172 if (is_component_build) { 172 if (is_component_build) {
173 ldflags = [ 173 ldflags = [
174 "/ignore:4049", 174 "/ignore:4049",
175 "/ignore:4217", 175 "/ignore:4217",
176 ] 176 ]
177 } 177 }
178 } 178 }
179 } 179 }
OLDNEW
« build_overrides/v8.gni ('K') | « test/cctest/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698