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

Side by Side Diff: BUILD.gn

Issue 2809963004: For building v8 using gn on aix_ppc64, linux_s390x and linux_ppc64. (Closed)
Patch Set: Created 3 years, 8 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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/arm.gni") 6 import("//build/config/arm.gni")
7 import("//build/config/dcheck_always_on.gni") 7 import("//build/config/dcheck_always_on.gni")
8 import("//build/config/mips.gni") 8 import("//build/config/mips.gni")
9 import("//build/config/sanitizers/sanitizers.gni") 9 import("//build/config/sanitizers/sanitizers.gni")
10 10
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 # Like v8_extra_library_files but for experimental features. 101 # Like v8_extra_library_files but for experimental features.
102 # 102 #
103 # This default is used by cctests. Projects using V8 will want to override. 103 # This default is used by cctests. Projects using V8 will want to override.
104 v8_experimental_extra_library_files = 104 v8_experimental_extra_library_files =
105 [ "//test/cctest/test-experimental-extra.js" ] 105 [ "//test/cctest/test-experimental-extra.js" ]
106 106
107 v8_enable_gdbjit = ((v8_current_cpu == "x86" || v8_current_cpu == "x64" || 107 v8_enable_gdbjit = ((v8_current_cpu == "x86" || v8_current_cpu == "x64" ||
108 v8_current_cpu == "x87") && (is_linux || is_mac)) || 108 v8_current_cpu == "x87") && (is_linux || is_mac)) ||
109 (v8_current_cpu == "ppc64" && is_linux) 109 (v8_current_cpu == "ppc64" && is_linux)
110
111 # Set v8_host_byteorder
112 v8_host_byteorder = "little"
113
114 # ppc64 can be either BE or LE
115 if (host_cpu == "ppc64") {
116 v8_host_byteorder =
117 exec_script("//tools/get_byteorder.py", [], "trim string")
118 }
119 if (host_cpu == "ppc" || host_cpu == "s390" || host_cpu == "s390x" ||
120 host_cpu == "mips" || host_cpu == "mips64") {
121 v8_host_byteorder = "big"
122 }
Dirk Pranke 2017/04/18 20:31:35 I think we should leave this here, at least until
rayb 2017/04/25 00:39:06 As per the discussion on the other CL, we now use
123 } 110 }
124 111
125 # Derived defaults. 112 # Derived defaults.
126 if (v8_enable_verify_heap == "") { 113 if (v8_enable_verify_heap == "") {
127 v8_enable_verify_heap = is_debug 114 v8_enable_verify_heap = is_debug
128 } 115 }
129 if (v8_enable_object_print == "") { 116 if (v8_enable_object_print == "") {
130 v8_enable_object_print = is_debug 117 v8_enable_object_print = is_debug
131 } 118 }
132 if (v8_enable_disassembler == "") { 119 if (v8_enable_disassembler == "") {
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 defines += [ "_MIPS_ARCH_MIPS64R6" ] 359 defines += [ "_MIPS_ARCH_MIPS64R6" ]
373 } else if (mips_arch_variant == "r2") { 360 } else if (mips_arch_variant == "r2") {
374 defines += [ "_MIPS_ARCH_MIPS64R2" ] 361 defines += [ "_MIPS_ARCH_MIPS64R2" ]
375 } 362 }
376 } 363 }
377 if (v8_current_cpu == "s390" || v8_current_cpu == "s390x") { 364 if (v8_current_cpu == "s390" || v8_current_cpu == "s390x") {
378 defines += [ "V8_TARGET_ARCH_S390" ] 365 defines += [ "V8_TARGET_ARCH_S390" ]
379 if (v8_current_cpu == "s390x") { 366 if (v8_current_cpu == "s390x") {
380 defines += [ "V8_TARGET_ARCH_S390X" ] 367 defines += [ "V8_TARGET_ARCH_S390X" ]
381 } 368 }
382 if (v8_host_byteorder == "little") { 369 if (host_byteorder == "little") {
383 defines += [ "V8_TARGET_ARCH_S390_LE_SIM" ] 370 defines += [ "V8_TARGET_ARCH_S390_LE_SIM" ]
384 } else { 371 } else {
385 cflags += [ "-march=z196" ] 372 cflags += [ "-march=z196" ]
386 } 373 }
387 } 374 }
388 if (v8_current_cpu == "ppc" || v8_current_cpu == "ppc64") { 375 if (v8_current_cpu == "ppc" || v8_current_cpu == "ppc64") {
389 defines += [ "V8_TARGET_ARCH_PPC" ] 376 defines += [ "V8_TARGET_ARCH_PPC" ]
390 if (v8_current_cpu == "ppc64") { 377 if (v8_current_cpu == "ppc64") {
391 defines += [ "V8_TARGET_ARCH_PPC64" ] 378 defines += [ "V8_TARGET_ARCH_PPC64" ]
392 } 379 }
393 if (v8_host_byteorder == "little") { 380 if (host_byteorder == "little") {
394 defines += [ "V8_TARGET_ARCH_PPC_LE" ] 381 defines += [ "V8_TARGET_ARCH_PPC_LE" ]
395 } else if (v8_host_byteorder == "big") { 382 } else if (host_byteorder == "big") {
396 defines += [ "V8_TARGET_ARCH_PPC_BE" ] 383 defines += [ "V8_TARGET_ARCH_PPC_BE" ]
397 if (current_os == "aix") { 384 if (current_os == "aix") {
398 cflags += [ 385 cflags += [
399 # Work around AIX ceil, trunc and round oddities. 386 # Work around AIX ceil, trunc and round oddities.
400 "-mcpu=power5+", 387 "-mcpu=power5+",
401 "-mfprnd", 388 "-mfprnd",
402 389
403 # Work around AIX assembler popcntb bug. 390 # Work around AIX assembler popcntb bug.
404 "-mno-popcntb", 391 "-mno-popcntb",
405 ] 392 ]
406 } 393 }
407 } 394 }
408 } 395 }
396
409 if (v8_current_cpu == "x86") { 397 if (v8_current_cpu == "x86") {
410 defines += [ "V8_TARGET_ARCH_IA32" ] 398 defines += [ "V8_TARGET_ARCH_IA32" ]
411 if (is_win) { 399 if (is_win) {
412 # Ensure no surprising artifacts from 80bit double math with x86. 400 # Ensure no surprising artifacts from 80bit double math with x86.
413 cflags += [ "/arch:SSE2" ] 401 cflags += [ "/arch:SSE2" ]
414 } 402 }
415 } 403 }
416 if (v8_current_cpu == "x64") { 404 if (v8_current_cpu == "x64") {
417 defines += [ "V8_TARGET_ARCH_X64" ] 405 defines += [ "V8_TARGET_ARCH_X64" ]
418 if (is_win) { 406 if (is_win) {
(...skipping 2039 matching lines...) Expand 10 before | Expand all | Expand 10 after
2458 if (is_linux) { 2446 if (is_linux) {
2459 sources += [ 2447 sources += [
2460 "src/base/debug/stack_trace_posix.cc", 2448 "src/base/debug/stack_trace_posix.cc",
2461 "src/base/platform/platform-linux.cc", 2449 "src/base/platform/platform-linux.cc",
2462 ] 2450 ]
2463 2451
2464 libs = [ 2452 libs = [
2465 "dl", 2453 "dl",
2466 "rt", 2454 "rt",
2467 ] 2455 ]
2456 } else if (current_os == "aix") {
2457 sources += [
2458 "src/base/debug/stack_trace_posix.cc",
2459 "src/base/platform/platform-aix.cc",
2460 ]
2461
2462 libs = [
2463 "dl",
2464 "rt",
2465 ]
2468 } else if (is_android) { 2466 } else if (is_android) {
2469 if (current_toolchain == host_toolchain) { 2467 if (current_toolchain == host_toolchain) {
2470 libs = [ 2468 libs = [
2471 "dl", 2469 "dl",
2472 "rt", 2470 "rt",
2473 ] 2471 ]
2474 if (host_os == "mac") { 2472 if (host_os == "mac") {
2475 sources += [ 2473 sources += [
2476 "src/base/debug/stack_trace_posix.cc", 2474 "src/base/debug/stack_trace_posix.cc",
2477 "src/base/platform/platform-macos.cc", 2475 "src/base/platform/platform-macos.cc",
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
3193 ] 3191 ]
3194 3192
3195 configs = [ 3193 configs = [
3196 ":external_config", 3194 ":external_config",
3197 ":internal_config_base", 3195 ":internal_config_base",
3198 ] 3196 ]
3199 } 3197 }
3200 3198
3201 v8_fuzzer("wasm_compile_fuzzer") { 3199 v8_fuzzer("wasm_compile_fuzzer") {
3202 } 3200 }
OLDNEW
« no previous file with comments | « .gn ('k') | infra/mb/mb_config.pyl » ('j') | infra/mb/mb_config.pyl » ('J')

Powered by Google App Engine
This is Rietveld 408576698