| 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 import("../../gni/v8.gni") | 5 import("../../gni/v8.gni") |
| 6 | 6 |
| 7 v8_executable("cctest") { | 7 v8_executable("cctest") { |
| 8 testonly = true | 8 testonly = true |
| 9 | 9 |
| 10 sources = [ | 10 sources = [ |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 sources += [ "test-platform-linux.cc" ] | 310 sources += [ "test-platform-linux.cc" ] |
| 311 } else if (is_win) { | 311 } else if (is_win) { |
| 312 sources += [ "test-platform-win32.cc" ] | 312 sources += [ "test-platform-win32.cc" ] |
| 313 } | 313 } |
| 314 | 314 |
| 315 configs = [ | 315 configs = [ |
| 316 "../..:external_config", | 316 "../..:external_config", |
| 317 "../..:internal_config_base", | 317 "../..:internal_config_base", |
| 318 ] | 318 ] |
| 319 | 319 |
| 320 if (is_win) { | |
| 321 remove_configs = [ "//build/config/win:default_incremental_linking" ] | |
| 322 configs += [ "//build/config/win:no_incremental_linking" ] | |
| 323 } | |
| 324 | |
| 325 # TODO(machenbach): Translate from gyp. | 320 # TODO(machenbach): Translate from gyp. |
| 326 #["OS=="aix"", { | 321 #["OS=="aix"", { |
| 327 # "ldflags": [ "-Wl,-bbigtoc" ], | 322 # "ldflags": [ "-Wl,-bbigtoc" ], |
| 328 #}], | 323 #}], |
| 329 | 324 |
| 330 deps = [ | 325 deps = [ |
| 331 ":resources", | 326 ":resources", |
| 332 "../..:v8_libbase", | 327 "../..:v8_libbase", |
| 333 "../..:v8_libplatform", | 328 "../..:v8_libplatform", |
| 334 "../..:wasm_module_runner", | 329 "../..:wasm_module_runner", |
| 335 "../..:wasm_test_signatures", | 330 "../..:wasm_test_signatures", |
| 336 "//build/config/sanitizers:deps", | 331 "//build/config/sanitizers:deps", |
| 337 "//build/win:default_exe_manifest", | 332 "//build/win:default_exe_manifest", |
| 338 ] | 333 ] |
| 339 | 334 |
| 335 defines = [] |
| 336 |
| 340 if (is_component_build) { | 337 if (is_component_build) { |
| 341 # cctest can't be built against a shared library, so we | 338 # cctest can't be built against a shared library, so we |
| 342 # need to depend on the underlying static target in that case. | 339 # need to depend on the underlying static target in that case. |
| 343 deps += [ "../..:v8_maybe_snapshot" ] | 340 deps += [ "../..:v8_maybe_snapshot" ] |
| 341 defines += [ "BUILDING_V8_SHARED" ] |
| 344 } else { | 342 } else { |
| 345 deps += [ "../..:v8" ] | 343 deps += [ "../..:v8" ] |
| 346 } | 344 } |
| 347 | 345 |
| 348 cflags = [] | 346 cflags = [] |
| 349 ldflags = [] | 347 ldflags = [] |
| 350 | 348 |
| 351 if (v8_current_cpu == "ppc" || v8_current_cpu == "ppc64" || | 349 if (v8_current_cpu == "ppc" || v8_current_cpu == "ppc64" || |
| 352 v8_current_cpu == "arm" || v8_current_cpu == "arm64" || | 350 v8_current_cpu == "arm" || v8_current_cpu == "arm64" || |
| 353 v8_current_cpu == "s390" || v8_current_cpu == "s390x") { | 351 v8_current_cpu == "s390" || v8_current_cpu == "s390x") { |
| 354 # Disable fmadd/fmsub so that expected results match generated code in | 352 # Disable fmadd/fmsub so that expected results match generated code in |
| 355 # RunFloat64MulAndFloat64Add1 and friends. | 353 # RunFloat64MulAndFloat64Add1 and friends. |
| 356 cflags += [ "-ffp-contract=off" ] | 354 cflags += [ "-ffp-contract=off" ] |
| 357 } | 355 } |
| 358 | 356 |
| 359 if (is_win) { | 357 if (is_win) { |
| 360 # This warning is benignly triggered by the U16 and U32 macros in | 358 # This warning is benignly triggered by the U16 and U32 macros in |
| 361 # bytecode-utils.h. | 359 # bytecode-utils.h. |
| 362 # C4309: 'static_cast': truncation of constant value | 360 # C4309: 'static_cast': truncation of constant value |
| 363 cflags += [ "/wd4309" ] | 361 cflags += [ "/wd4309" ] |
| 364 | 362 |
| 365 # MSVS wants this for gay-{precision,shortest}.cc. | 363 # MSVS wants this for gay-{precision,shortest}.cc. |
| 366 cflags += [ "/bigobj" ] | 364 cflags += [ "/bigobj" ] |
| 367 | |
| 368 # Suppress warnings about importing locally defined symbols. | |
| 369 if (is_component_build) { | |
| 370 ldflags += [ | |
| 371 "/ignore:4049", | |
| 372 "/ignore:4217", | |
| 373 ] | |
| 374 } | |
| 375 } | 365 } |
| 376 } | 366 } |
| 377 | 367 |
| 378 action("resources") { | 368 action("resources") { |
| 379 visibility = [ ":*" ] # Only targets in this file can depend on this. | 369 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 380 | 370 |
| 381 script = "../../tools/js2c.py" | 371 script = "../../tools/js2c.py" |
| 382 | 372 |
| 383 # The script depends on this other script, this rule causes a rebuild if it | 373 # The script depends on this other script, this rule causes a rebuild if it |
| 384 # changes. | 374 # changes. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 "../..:external_config", | 410 "../..:external_config", |
| 421 "../..:internal_config_base", | 411 "../..:internal_config_base", |
| 422 ] | 412 ] |
| 423 | 413 |
| 424 deps = [ | 414 deps = [ |
| 425 "../..:v8_libplatform", | 415 "../..:v8_libplatform", |
| 426 "//build/config/sanitizers:deps", | 416 "//build/config/sanitizers:deps", |
| 427 "//build/win:default_exe_manifest", | 417 "//build/win:default_exe_manifest", |
| 428 ] | 418 ] |
| 429 | 419 |
| 420 defines = [] |
| 421 |
| 430 if (is_component_build) { | 422 if (is_component_build) { |
| 431 # Same as cctest, we need to depend on the underlying static target. | 423 # Same as cctest, we need to depend on the underlying static target. |
| 432 deps += [ "../..:v8_maybe_snapshot" ] | 424 deps += [ "../..:v8_maybe_snapshot" ] |
| 425 defines += [ "BUILDING_V8_SHARED" ] |
| 433 } else { | 426 } else { |
| 434 deps += [ "../..:v8" ] | 427 deps += [ "../..:v8" ] |
| 435 } | 428 } |
| 436 | |
| 437 if (is_win) { | |
| 438 # Suppress warnings about importing locally defined symbols. | |
| 439 if (is_component_build) { | |
| 440 ldflags = [ | |
| 441 "/ignore:4049", | |
| 442 "/ignore:4217", | |
| 443 ] | |
| 444 } | |
| 445 } | |
| 446 } | 429 } |
| OLD | NEW |