mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-09 19:37:30 -03:00
update main build gns
This commit is contained in:
parent
bfec66f519
commit
bba7d4f4f5
6 changed files with 203 additions and 168 deletions
|
@ -150,6 +150,8 @@ declare_args() {
|
|||
# recognizable in the debugger, and crashes on memory accesses through
|
||||
# uninitialized pointers.
|
||||
#
|
||||
# Flag discussion: https://crbug.com/977230
|
||||
#
|
||||
# TODO(crbug.com/1131993): This regresses binary size by ~1MB on Android and
|
||||
# needs to be evaluated before enabling it there as well.
|
||||
init_stack_vars = !(is_android && is_official_build)
|
||||
|
@ -820,13 +822,9 @@ config("compiler") {
|
|||
ldflags += [ "-Wcrl,object_path_lto" ]
|
||||
}
|
||||
|
||||
if (!is_chromeos) {
|
||||
# TODO(https://crbug.com/972449): turn on for ChromeOS when that
|
||||
# toolchain has this flag.
|
||||
# We only use one version of LLVM within a build so there's no need to
|
||||
# upgrade debug info, which can be expensive since it runs the verifier.
|
||||
ldflags += [ "-Wl,-mllvm,-disable-auto-upgrade-debug-info" ]
|
||||
}
|
||||
# We only use one version of LLVM within a build so there's no need to
|
||||
# upgrade debug info, which can be expensive since it runs the verifier.
|
||||
ldflags += [ "-Wl,-mllvm,-disable-auto-upgrade-debug-info" ]
|
||||
}
|
||||
|
||||
# TODO(https://crbug.com/1211155): investigate why this isn't effective on
|
||||
|
@ -1803,9 +1801,9 @@ config("default_warnings") {
|
|||
cflags += [ "/wd4244" ]
|
||||
}
|
||||
} else {
|
||||
if (is_apple && !is_nacl) {
|
||||
# When compiling Objective-C, warns if a method is used whose
|
||||
# availability is newer than the deployment target.
|
||||
if ((is_apple || is_android) && !is_nacl) {
|
||||
# Warns if a method is used whose availability is newer than the
|
||||
# deployment target.
|
||||
cflags += [ "-Wunguarded-availability" ]
|
||||
}
|
||||
|
||||
|
@ -1902,27 +1900,30 @@ config("default_warnings") {
|
|||
# Ignore warnings about MSVC optimization pragmas.
|
||||
# TODO(thakis): Only for no_chromium_code? http://crbug.com/912662
|
||||
"-Wno-ignored-pragma-optimize",
|
||||
|
||||
# TODO(crbug.com/1343975) Evaluate and possibly enable.
|
||||
"-Wno-deprecated-builtins",
|
||||
|
||||
# TODO(crbug.com/1352183) Evaluate and possibly enable.
|
||||
"-Wno-bitfield-constant-conversion",
|
||||
|
||||
# TODO(crbug.com/1412713) Evaluate and possibly enable.
|
||||
"-Wno-deprecated-this-capture",
|
||||
|
||||
# TODO(https://crbug.com/1491833): Fix and re-enable.
|
||||
"-Wno-invalid-offsetof",
|
||||
|
||||
# TODO(crbug.com/1494809): Evaluate and possibly enable.
|
||||
"-Wno-vla-extension",
|
||||
|
||||
# TODO(https://crbug.com/1490607): Fix and re-enable.
|
||||
"-Wno-thread-safety-reference-return",
|
||||
]
|
||||
|
||||
if (!is_nacl) {
|
||||
cflags += [
|
||||
# TODO(crbug.com/1343975) Evaluate and possibly enable.
|
||||
"-Wno-deprecated-builtins",
|
||||
|
||||
# TODO(crbug.com/1352183) Evaluate and possibly enable.
|
||||
"-Wno-bitfield-constant-conversion",
|
||||
|
||||
# TODO(crbug.com/1412713) Evaluate and possibly enable.
|
||||
"-Wno-deprecated-this-capture",
|
||||
|
||||
# TODO(https://crbug.com/1491833): Fix and re-enable.
|
||||
"-Wno-invalid-offsetof",
|
||||
|
||||
# TODO(crbug.com/1494809): Evaluate and possibly enable.
|
||||
"-Wno-vla-extension",
|
||||
|
||||
# TODO(https://crbug.com/1490607): Fix and re-enable.
|
||||
"-Wno-thread-safety-reference-return",
|
||||
cflags_cc += [
|
||||
# TODO(https://crbug.com/1513724): Fix and re-enable.
|
||||
"-Wno-c++11-narrowing-const-reference",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -2946,7 +2947,7 @@ config("symbols") {
|
|||
]
|
||||
}
|
||||
}
|
||||
rustflags += [ "-g", "-Copt-level=3", ]
|
||||
rustflags += [ "-g" ]
|
||||
}
|
||||
|
||||
# Minimal symbols.
|
||||
|
|
|
@ -147,6 +147,8 @@ declare_args() {
|
|||
# recognizable in the debugger, and crashes on memory accesses through
|
||||
# uninitialized pointers.
|
||||
#
|
||||
# Flag discussion: https://crbug.com/977230
|
||||
#
|
||||
# TODO(crbug.com/1131993): This regresses binary size by ~1MB on Android and
|
||||
# needs to be evaluated before enabling it there as well.
|
||||
init_stack_vars = !(is_android && is_official_build)
|
||||
|
@ -817,13 +819,9 @@ config("compiler") {
|
|||
ldflags += [ "-Wcrl,object_path_lto" ]
|
||||
}
|
||||
|
||||
if (!is_chromeos) {
|
||||
# TODO(https://crbug.com/972449): turn on for ChromeOS when that
|
||||
# toolchain has this flag.
|
||||
# We only use one version of LLVM within a build so there's no need to
|
||||
# upgrade debug info, which can be expensive since it runs the verifier.
|
||||
ldflags += [ "-Wl,-mllvm,-disable-auto-upgrade-debug-info" ]
|
||||
}
|
||||
# We only use one version of LLVM within a build so there's no need to
|
||||
# upgrade debug info, which can be expensive since it runs the verifier.
|
||||
ldflags += [ "-Wl,-mllvm,-disable-auto-upgrade-debug-info" ]
|
||||
}
|
||||
|
||||
# TODO(https://crbug.com/1211155): investigate why this isn't effective on
|
||||
|
@ -1804,9 +1802,9 @@ config("default_warnings") {
|
|||
cflags += [ "/wd4244" ]
|
||||
}
|
||||
} else {
|
||||
if (is_apple && !is_nacl) {
|
||||
# When compiling Objective-C, warns if a method is used whose
|
||||
# availability is newer than the deployment target.
|
||||
if ((is_apple || is_android) && !is_nacl) {
|
||||
# Warns if a method is used whose availability is newer than the
|
||||
# deployment target.
|
||||
cflags += [ "-Wunguarded-availability" ]
|
||||
}
|
||||
|
||||
|
@ -1903,27 +1901,30 @@ config("default_warnings") {
|
|||
# Ignore warnings about MSVC optimization pragmas.
|
||||
# TODO(thakis): Only for no_chromium_code? http://crbug.com/912662
|
||||
"-Wno-ignored-pragma-optimize",
|
||||
|
||||
# TODO(crbug.com/1343975) Evaluate and possibly enable.
|
||||
"-Wno-deprecated-builtins",
|
||||
|
||||
# TODO(crbug.com/1352183) Evaluate and possibly enable.
|
||||
"-Wno-bitfield-constant-conversion",
|
||||
|
||||
# TODO(crbug.com/1412713) Evaluate and possibly enable.
|
||||
"-Wno-deprecated-this-capture",
|
||||
|
||||
# TODO(https://crbug.com/1491833): Fix and re-enable.
|
||||
"-Wno-invalid-offsetof",
|
||||
|
||||
# TODO(crbug.com/1494809): Evaluate and possibly enable.
|
||||
"-Wno-vla-extension",
|
||||
|
||||
# TODO(https://crbug.com/1490607): Fix and re-enable.
|
||||
"-Wno-thread-safety-reference-return",
|
||||
]
|
||||
|
||||
if (!is_nacl) {
|
||||
cflags += [
|
||||
# TODO(crbug.com/1343975) Evaluate and possibly enable.
|
||||
"-Wno-deprecated-builtins",
|
||||
|
||||
# TODO(crbug.com/1352183) Evaluate and possibly enable.
|
||||
"-Wno-bitfield-constant-conversion",
|
||||
|
||||
# TODO(crbug.com/1412713) Evaluate and possibly enable.
|
||||
"-Wno-deprecated-this-capture",
|
||||
|
||||
# TODO(https://crbug.com/1491833): Fix and re-enable.
|
||||
"-Wno-invalid-offsetof",
|
||||
|
||||
# TODO(crbug.com/1494809): Evaluate and possibly enable.
|
||||
"-Wno-vla-extension",
|
||||
|
||||
# TODO(https://crbug.com/1490607): Fix and re-enable.
|
||||
"-Wno-thread-safety-reference-return",
|
||||
cflags_cc += [
|
||||
# TODO(https://crbug.com/1513724): Fix and re-enable.
|
||||
"-Wno-c++11-narrowing-const-reference",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -2991,7 +2992,7 @@ config("symbols") {
|
|||
]
|
||||
}
|
||||
}
|
||||
rustflags += [ "-g", "-Copt-level=3", "-Ctarget-feature=+aes,+avx,+avx2,+fma", ]
|
||||
rustflags += [ "-g" ]
|
||||
}
|
||||
|
||||
# Minimal symbols.
|
||||
|
|
|
@ -147,6 +147,8 @@ declare_args() {
|
|||
# recognizable in the debugger, and crashes on memory accesses through
|
||||
# uninitialized pointers.
|
||||
#
|
||||
# Flag discussion: https://crbug.com/977230
|
||||
#
|
||||
# TODO(crbug.com/1131993): This regresses binary size by ~1MB on Android and
|
||||
# needs to be evaluated before enabling it there as well.
|
||||
init_stack_vars = !(is_android && is_official_build)
|
||||
|
@ -817,13 +819,9 @@ config("compiler") {
|
|||
ldflags += [ "-Wcrl,object_path_lto" ]
|
||||
}
|
||||
|
||||
if (!is_chromeos) {
|
||||
# TODO(https://crbug.com/972449): turn on for ChromeOS when that
|
||||
# toolchain has this flag.
|
||||
# We only use one version of LLVM within a build so there's no need to
|
||||
# upgrade debug info, which can be expensive since it runs the verifier.
|
||||
ldflags += [ "-Wl,-mllvm,-disable-auto-upgrade-debug-info" ]
|
||||
}
|
||||
# We only use one version of LLVM within a build so there's no need to
|
||||
# upgrade debug info, which can be expensive since it runs the verifier.
|
||||
ldflags += [ "-Wl,-mllvm,-disable-auto-upgrade-debug-info" ]
|
||||
}
|
||||
|
||||
# TODO(https://crbug.com/1211155): investigate why this isn't effective on
|
||||
|
@ -1793,9 +1791,9 @@ config("default_warnings") {
|
|||
cflags += [ "/wd4244" ]
|
||||
}
|
||||
} else {
|
||||
if (is_apple && !is_nacl) {
|
||||
# When compiling Objective-C, warns if a method is used whose
|
||||
# availability is newer than the deployment target.
|
||||
if ((is_apple || is_android) && !is_nacl) {
|
||||
# Warns if a method is used whose availability is newer than the
|
||||
# deployment target.
|
||||
cflags += [ "-Wunguarded-availability" ]
|
||||
}
|
||||
|
||||
|
@ -1892,27 +1890,30 @@ config("default_warnings") {
|
|||
# Ignore warnings about MSVC optimization pragmas.
|
||||
# TODO(thakis): Only for no_chromium_code? http://crbug.com/912662
|
||||
"-Wno-ignored-pragma-optimize",
|
||||
|
||||
# TODO(crbug.com/1343975) Evaluate and possibly enable.
|
||||
"-Wno-deprecated-builtins",
|
||||
|
||||
# TODO(crbug.com/1352183) Evaluate and possibly enable.
|
||||
"-Wno-bitfield-constant-conversion",
|
||||
|
||||
# TODO(crbug.com/1412713) Evaluate and possibly enable.
|
||||
"-Wno-deprecated-this-capture",
|
||||
|
||||
# TODO(https://crbug.com/1491833): Fix and re-enable.
|
||||
"-Wno-invalid-offsetof",
|
||||
|
||||
# TODO(crbug.com/1494809): Evaluate and possibly enable.
|
||||
"-Wno-vla-extension",
|
||||
|
||||
# TODO(https://crbug.com/1490607): Fix and re-enable.
|
||||
"-Wno-thread-safety-reference-return",
|
||||
]
|
||||
|
||||
if (!is_nacl) {
|
||||
cflags += [
|
||||
# TODO(crbug.com/1343975) Evaluate and possibly enable.
|
||||
"-Wno-deprecated-builtins",
|
||||
|
||||
# TODO(crbug.com/1352183) Evaluate and possibly enable.
|
||||
"-Wno-bitfield-constant-conversion",
|
||||
|
||||
# TODO(crbug.com/1412713) Evaluate and possibly enable.
|
||||
"-Wno-deprecated-this-capture",
|
||||
|
||||
# TODO(https://crbug.com/1491833): Fix and re-enable.
|
||||
"-Wno-invalid-offsetof",
|
||||
|
||||
# TODO(crbug.com/1494809): Evaluate and possibly enable.
|
||||
"-Wno-vla-extension",
|
||||
|
||||
# TODO(https://crbug.com/1490607): Fix and re-enable.
|
||||
"-Wno-thread-safety-reference-return",
|
||||
cflags_cc += [
|
||||
# TODO(https://crbug.com/1513724): Fix and re-enable.
|
||||
"-Wno-c++11-narrowing-const-reference",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -2915,7 +2916,7 @@ config("symbols") {
|
|||
]
|
||||
}
|
||||
}
|
||||
rustflags += [ "-g", "-Copt-level=3", "-Ctarget-feature=+sse4.1", ]
|
||||
rustflags += [ "-g" ]
|
||||
}
|
||||
|
||||
# Minimal symbols.
|
||||
|
|
|
@ -196,7 +196,7 @@ declare_args() {
|
|||
|
||||
# This build flag is used to control whether reorder builtins acoording to
|
||||
# the call graph with C3 algorithm based builtin PGO profiling.
|
||||
v8_enable_builtins_reordering = false
|
||||
v8_enable_builtins_reordering = true
|
||||
|
||||
# Provides the given V8 log file as an input to mksnapshot, where it can be
|
||||
# used for profile-guided optimization of builtins.
|
||||
|
@ -1372,6 +1372,21 @@ config("toolchain") {
|
|||
}
|
||||
|
||||
# Under simulator build, compiler will not provide __riscv_xlen. Define here
|
||||
if (v8_current_cpu == "riscv64" || v8_current_cpu == "riscv32") {
|
||||
if (riscv_use_rvv || target_is_simulator) {
|
||||
defines += [ "CAN_USE_RVV_INSTRUCTIONS" ]
|
||||
defines += [ "RVV_VLEN=${riscv_rvv_vlen}" ]
|
||||
}
|
||||
if (riscv_use_zba || target_is_simulator) {
|
||||
defines += [ "CAN_USE_ZBA_INSTRUCTIONS" ]
|
||||
}
|
||||
if (riscv_use_zbb || target_is_simulator) {
|
||||
defines += [ "CAN_USE_ZBB_INSTRUCTIONS" ]
|
||||
}
|
||||
if (riscv_use_zbs || target_is_simulator) {
|
||||
defines += [ "CAN_USE_ZBS_INSTRUCTIONS" ]
|
||||
}
|
||||
}
|
||||
if (v8_current_cpu == "riscv64") {
|
||||
defines += [ "V8_TARGET_ARCH_RISCV64" ]
|
||||
defines += [ "__riscv_xlen=64" ]
|
||||
|
@ -1379,21 +1394,12 @@ config("toolchain") {
|
|||
if (!is_clang) {
|
||||
cflags += [ "-ffp-contract=off" ]
|
||||
}
|
||||
if (riscv_use_rvv || target_is_simulator) {
|
||||
defines += [ "CAN_USE_RVV_INSTRUCTIONS" ]
|
||||
defines += [ "RVV_VLEN=${riscv_rvv_vlen}" ]
|
||||
}
|
||||
}
|
||||
|
||||
if (v8_current_cpu == "riscv32") {
|
||||
defines += [ "V8_TARGET_ARCH_RISCV32" ]
|
||||
defines += [ "__riscv_xlen=32" ]
|
||||
defines += [ "CAN_USE_FPU_INSTRUCTIONS" ]
|
||||
|
||||
if (riscv_use_rvv || target_is_simulator) {
|
||||
defines += [ "CAN_USE_RVV_INSTRUCTIONS" ]
|
||||
defines += [ "RVV_VLEN=${riscv_rvv_vlen}" ]
|
||||
}
|
||||
}
|
||||
|
||||
if (v8_current_cpu == "x86") {
|
||||
|
@ -2096,6 +2102,7 @@ if (v8_enable_i18n_support) {
|
|||
|
||||
if (v8_enable_webassembly) {
|
||||
torque_files += [
|
||||
"src/builtins/js-to-js.tq",
|
||||
"src/builtins/js-to-wasm.tq",
|
||||
"src/builtins/wasm.tq",
|
||||
"src/builtins/wasm-strings.tq",
|
||||
|
@ -2858,6 +2865,7 @@ v8_source_set("v8_initializers") {
|
|||
"src/builtins/profile-data-reader.h",
|
||||
"src/builtins/setup-builtins-internal.cc",
|
||||
"src/builtins/torque-csa-header-includes.h",
|
||||
"src/codegen/code-stub-assembler-inl.h",
|
||||
"src/codegen/code-stub-assembler.cc",
|
||||
"src/codegen/code-stub-assembler.h",
|
||||
"src/heap/setup-heap-internal.cc",
|
||||
|
@ -3377,13 +3385,13 @@ v8_header_set("v8_internal_headers") {
|
|||
"src/compiler/turboshaft/analyzer-iterator.h",
|
||||
"src/compiler/turboshaft/assembler.h",
|
||||
"src/compiler/turboshaft/assert-types-reducer.h",
|
||||
"src/compiler/turboshaft/branch-condition-duplication-reducer.h",
|
||||
"src/compiler/turboshaft/branch-elimination-reducer.h",
|
||||
"src/compiler/turboshaft/build-graph-phase.h",
|
||||
"src/compiler/turboshaft/builtin-call-descriptors.h",
|
||||
"src/compiler/turboshaft/code-elimination-and-simplification-phase.h",
|
||||
"src/compiler/turboshaft/copying-phase.h",
|
||||
"src/compiler/turboshaft/csa-optimize-phase.h",
|
||||
"src/compiler/turboshaft/dataview-reducer.h",
|
||||
"src/compiler/turboshaft/dead-code-elimination-phase.h",
|
||||
"src/compiler/turboshaft/dead-code-elimination-reducer.h",
|
||||
"src/compiler/turboshaft/debug-feature-lowering-phase.h",
|
||||
"src/compiler/turboshaft/debug-feature-lowering-reducer.h",
|
||||
|
@ -3391,6 +3399,7 @@ v8_header_set("v8_internal_headers") {
|
|||
"src/compiler/turboshaft/decompression-optimization.h",
|
||||
"src/compiler/turboshaft/define-assembler-macros.inc",
|
||||
"src/compiler/turboshaft/deopt-data.h",
|
||||
"src/compiler/turboshaft/duplication-optimization-reducer.h",
|
||||
"src/compiler/turboshaft/explicit-truncation-reducer.h",
|
||||
"src/compiler/turboshaft/fast-api-call-reducer.h",
|
||||
"src/compiler/turboshaft/fast-hash.h",
|
||||
|
@ -3411,6 +3420,7 @@ v8_header_set("v8_internal_headers") {
|
|||
"src/compiler/turboshaft/machine-lowering-phase.h",
|
||||
"src/compiler/turboshaft/machine-lowering-reducer-inl.h",
|
||||
"src/compiler/turboshaft/machine-optimization-reducer.h",
|
||||
"src/compiler/turboshaft/maglev-graph-building-phase.h",
|
||||
"src/compiler/turboshaft/memory-optimization-reducer.h",
|
||||
"src/compiler/turboshaft/operation-matcher.h",
|
||||
"src/compiler/turboshaft/operations.h",
|
||||
|
@ -3428,6 +3438,7 @@ v8_header_set("v8_internal_headers") {
|
|||
"src/compiler/turboshaft/select-lowering-reducer.h",
|
||||
"src/compiler/turboshaft/sidetable.h",
|
||||
"src/compiler/turboshaft/simplified-lowering-phase.h",
|
||||
"src/compiler/turboshaft/simplified-lowering-reducer.h",
|
||||
"src/compiler/turboshaft/simplify-tf-loops.h",
|
||||
"src/compiler/turboshaft/snapshot-table-opindex.h",
|
||||
"src/compiler/turboshaft/snapshot-table.h",
|
||||
|
@ -3554,8 +3565,6 @@ v8_header_set("v8_internal_headers") {
|
|||
"src/heap/code-stats.h",
|
||||
"src/heap/collection-barrier.h",
|
||||
"src/heap/combined-heap.h",
|
||||
"src/heap/concurrent-allocator-inl.h",
|
||||
"src/heap/concurrent-allocator.h",
|
||||
"src/heap/concurrent-marking.h",
|
||||
"src/heap/cppgc-js/cpp-heap.h",
|
||||
"src/heap/cppgc-js/cpp-marking-state-inl.h",
|
||||
|
@ -4008,6 +4017,7 @@ v8_header_set("v8_internal_headers") {
|
|||
"src/runtime/runtime.h",
|
||||
"src/sandbox/bounded-size-inl.h",
|
||||
"src/sandbox/bounded-size.h",
|
||||
"src/sandbox/code-entrypoint-tag.h",
|
||||
"src/sandbox/code-pointer-inl.h",
|
||||
"src/sandbox/code-pointer-table-inl.h",
|
||||
"src/sandbox/code-pointer-table.h",
|
||||
|
@ -4274,6 +4284,8 @@ v8_header_set("v8_internal_headers") {
|
|||
sources += [
|
||||
"src/compiler/linear-scheduler.h",
|
||||
"src/compiler/revectorizer.h",
|
||||
"src/compiler/turboshaft/wasm-revec-phase.h",
|
||||
"src/compiler/turboshaft/wasm-revec-reducer.h",
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -4692,6 +4704,7 @@ v8_header_set("v8_internal_headers") {
|
|||
":v8_headers",
|
||||
":v8_maybe_icu",
|
||||
":v8_shared_internal_headers",
|
||||
"//third_party/fp16",
|
||||
]
|
||||
|
||||
deps = [
|
||||
|
@ -4937,6 +4950,8 @@ if (v8_enable_wasm_simd256_revec) {
|
|||
v8_compiler_sources += [
|
||||
"src/compiler/linear-scheduler.cc",
|
||||
"src/compiler/revectorizer.cc",
|
||||
"src/compiler/turboshaft/wasm-revec-phase.cc",
|
||||
"src/compiler/turboshaft/wasm-revec-reducer.cc",
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -5014,8 +5029,9 @@ v8_source_set("v8_turboshaft") {
|
|||
"src/compiler/turboshaft/analyzer-iterator.cc",
|
||||
"src/compiler/turboshaft/assembler.cc",
|
||||
"src/compiler/turboshaft/build-graph-phase.cc",
|
||||
"src/compiler/turboshaft/code-elimination-and-simplification-phase.cc",
|
||||
"src/compiler/turboshaft/copying-phase.cc",
|
||||
"src/compiler/turboshaft/dead-code-elimination-phase.cc",
|
||||
"src/compiler/turboshaft/csa-optimize-phase.cc",
|
||||
"src/compiler/turboshaft/debug-feature-lowering-phase.cc",
|
||||
"src/compiler/turboshaft/decompression-optimization-phase.cc",
|
||||
"src/compiler/turboshaft/decompression-optimization.cc",
|
||||
|
@ -5030,6 +5046,7 @@ v8_source_set("v8_turboshaft") {
|
|||
"src/compiler/turboshaft/loop-unrolling-phase.cc",
|
||||
"src/compiler/turboshaft/loop-unrolling-reducer.cc",
|
||||
"src/compiler/turboshaft/machine-lowering-phase.cc",
|
||||
"src/compiler/turboshaft/maglev-graph-building-phase.cc",
|
||||
"src/compiler/turboshaft/memory-optimization-reducer.cc",
|
||||
"src/compiler/turboshaft/operations.cc",
|
||||
"src/compiler/turboshaft/optimize-phase.cc",
|
||||
|
@ -5051,6 +5068,18 @@ v8_source_set("v8_turboshaft") {
|
|||
"src/compiler/turboshaft/utils.cc",
|
||||
]
|
||||
|
||||
if (!v8_enable_maglev) {
|
||||
# When Maglev is not enabled, Turboshaft still needs Maglev's graph builder.
|
||||
sources += [
|
||||
"src/maglev/maglev-compilation-info.cc",
|
||||
"src/maglev/maglev-compilation-unit.cc",
|
||||
"src/maglev/maglev-graph-builder.cc",
|
||||
"src/maglev/maglev-graph-printer.cc",
|
||||
"src/maglev/maglev-interpreter-frame-state.cc",
|
||||
"src/maglev/maglev-ir.cc",
|
||||
]
|
||||
}
|
||||
|
||||
public_deps = [
|
||||
":generate_bytecode_builtins_list",
|
||||
":run_torque",
|
||||
|
@ -5254,7 +5283,6 @@ v8_source_set("v8_base_without_compiler") {
|
|||
"src/heap/code-stats.cc",
|
||||
"src/heap/collection-barrier.cc",
|
||||
"src/heap/combined-heap.cc",
|
||||
"src/heap/concurrent-allocator.cc",
|
||||
"src/heap/concurrent-marking.cc",
|
||||
"src/heap/cppgc-js/cpp-heap.cc",
|
||||
"src/heap/cppgc-js/cpp-snapshot.cc",
|
||||
|
@ -5983,6 +6011,15 @@ v8_source_set("v8_base_without_compiler") {
|
|||
":v8_maybe_icu",
|
||||
]
|
||||
|
||||
if (v8_fuzzilli) {
|
||||
sources += [
|
||||
"src/fuzzilli/cov.cc",
|
||||
"src/fuzzilli/cov.h",
|
||||
"src/fuzzilli/fuzzilli.cc",
|
||||
"src/fuzzilli/fuzzilli.h",
|
||||
]
|
||||
}
|
||||
|
||||
if (v8_enable_i18n_support) {
|
||||
deps += [ ":run_gen-regexp-special-case" ]
|
||||
sources += [ "$target_gen_dir/src/regexp/special-case.cc" ]
|
||||
|
@ -7379,13 +7416,6 @@ v8_executable("d8") {
|
|||
"src/d8/d8.h",
|
||||
]
|
||||
|
||||
if (v8_fuzzilli) {
|
||||
sources += [
|
||||
"src/d8/cov.cc",
|
||||
"src/d8/cov.h",
|
||||
]
|
||||
}
|
||||
|
||||
configs = [
|
||||
# Note: don't use :internal_config here because this target will get
|
||||
# the :external_config applied to it by virtue of depending on :v8, and
|
||||
|
|
|
@ -147,6 +147,8 @@ declare_args() {
|
|||
# recognizable in the debugger, and crashes on memory accesses through
|
||||
# uninitialized pointers.
|
||||
#
|
||||
# Flag discussion: https://crbug.com/977230
|
||||
#
|
||||
# TODO(crbug.com/1131993): This regresses binary size by ~1MB on Android and
|
||||
# needs to be evaluated before enabling it there as well.
|
||||
init_stack_vars = !(is_android && is_official_build)
|
||||
|
@ -817,13 +819,9 @@ config("compiler") {
|
|||
ldflags += [ "-Wcrl,object_path_lto" ]
|
||||
}
|
||||
|
||||
if (!is_chromeos) {
|
||||
# TODO(https://crbug.com/972449): turn on for ChromeOS when that
|
||||
# toolchain has this flag.
|
||||
# We only use one version of LLVM within a build so there's no need to
|
||||
# upgrade debug info, which can be expensive since it runs the verifier.
|
||||
ldflags += [ "-Wl,-mllvm,-disable-auto-upgrade-debug-info" ]
|
||||
}
|
||||
# We only use one version of LLVM within a build so there's no need to
|
||||
# upgrade debug info, which can be expensive since it runs the verifier.
|
||||
ldflags += [ "-Wl,-mllvm,-disable-auto-upgrade-debug-info" ]
|
||||
}
|
||||
|
||||
# TODO(https://crbug.com/1211155): investigate why this isn't effective on
|
||||
|
@ -1790,9 +1788,9 @@ config("default_warnings") {
|
|||
cflags += [ "/wd4244" ]
|
||||
}
|
||||
} else {
|
||||
if (is_apple && !is_nacl) {
|
||||
# When compiling Objective-C, warns if a method is used whose
|
||||
# availability is newer than the deployment target.
|
||||
if ((is_apple || is_android) && !is_nacl) {
|
||||
# Warns if a method is used whose availability is newer than the
|
||||
# deployment target.
|
||||
cflags += [ "-Wunguarded-availability" ]
|
||||
}
|
||||
|
||||
|
@ -1889,27 +1887,30 @@ config("default_warnings") {
|
|||
# Ignore warnings about MSVC optimization pragmas.
|
||||
# TODO(thakis): Only for no_chromium_code? http://crbug.com/912662
|
||||
"-Wno-ignored-pragma-optimize",
|
||||
|
||||
# TODO(crbug.com/1343975) Evaluate and possibly enable.
|
||||
"-Wno-deprecated-builtins",
|
||||
|
||||
# TODO(crbug.com/1352183) Evaluate and possibly enable.
|
||||
"-Wno-bitfield-constant-conversion",
|
||||
|
||||
# TODO(crbug.com/1412713) Evaluate and possibly enable.
|
||||
"-Wno-deprecated-this-capture",
|
||||
|
||||
# TODO(https://crbug.com/1491833): Fix and re-enable.
|
||||
"-Wno-invalid-offsetof",
|
||||
|
||||
# TODO(crbug.com/1494809): Evaluate and possibly enable.
|
||||
"-Wno-vla-extension",
|
||||
|
||||
# TODO(https://crbug.com/1490607): Fix and re-enable.
|
||||
"-Wno-thread-safety-reference-return",
|
||||
]
|
||||
|
||||
if (!is_nacl) {
|
||||
cflags += [
|
||||
# TODO(crbug.com/1343975) Evaluate and possibly enable.
|
||||
"-Wno-deprecated-builtins",
|
||||
|
||||
# TODO(crbug.com/1352183) Evaluate and possibly enable.
|
||||
"-Wno-bitfield-constant-conversion",
|
||||
|
||||
# TODO(crbug.com/1412713) Evaluate and possibly enable.
|
||||
"-Wno-deprecated-this-capture",
|
||||
|
||||
# TODO(https://crbug.com/1491833): Fix and re-enable.
|
||||
"-Wno-invalid-offsetof",
|
||||
|
||||
# TODO(crbug.com/1494809): Evaluate and possibly enable.
|
||||
"-Wno-vla-extension",
|
||||
|
||||
# TODO(https://crbug.com/1490607): Fix and re-enable.
|
||||
"-Wno-thread-safety-reference-return",
|
||||
cflags_cc += [
|
||||
# TODO(https://crbug.com/1513724): Fix and re-enable.
|
||||
"-Wno-c++11-narrowing-const-reference",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -2930,7 +2931,7 @@ config("symbols") {
|
|||
]
|
||||
}
|
||||
}
|
||||
rustflags += [ "-g", "-Copt-level=3", "-Ctarget-feature=+sse3", ]
|
||||
rustflags += [ "-g" ]
|
||||
}
|
||||
|
||||
# Minimal symbols.
|
||||
|
|
|
@ -147,6 +147,8 @@ declare_args() {
|
|||
# recognizable in the debugger, and crashes on memory accesses through
|
||||
# uninitialized pointers.
|
||||
#
|
||||
# Flag discussion: https://crbug.com/977230
|
||||
#
|
||||
# TODO(crbug.com/1131993): This regresses binary size by ~1MB on Android and
|
||||
# needs to be evaluated before enabling it there as well.
|
||||
init_stack_vars = !(is_android && is_official_build)
|
||||
|
@ -817,13 +819,9 @@ config("compiler") {
|
|||
ldflags += [ "-Wcrl,object_path_lto" ]
|
||||
}
|
||||
|
||||
if (!is_chromeos) {
|
||||
# TODO(https://crbug.com/972449): turn on for ChromeOS when that
|
||||
# toolchain has this flag.
|
||||
# We only use one version of LLVM within a build so there's no need to
|
||||
# upgrade debug info, which can be expensive since it runs the verifier.
|
||||
ldflags += [ "-Wl,-mllvm,-disable-auto-upgrade-debug-info" ]
|
||||
}
|
||||
# We only use one version of LLVM within a build so there's no need to
|
||||
# upgrade debug info, which can be expensive since it runs the verifier.
|
||||
ldflags += [ "-Wl,-mllvm,-disable-auto-upgrade-debug-info" ]
|
||||
}
|
||||
|
||||
# TODO(https://crbug.com/1211155): investigate why this isn't effective on
|
||||
|
@ -1797,9 +1795,9 @@ config("default_warnings") {
|
|||
cflags += [ "/wd4244" ]
|
||||
}
|
||||
} else {
|
||||
if (is_apple && !is_nacl) {
|
||||
# When compiling Objective-C, warns if a method is used whose
|
||||
# availability is newer than the deployment target.
|
||||
if ((is_apple || is_android) && !is_nacl) {
|
||||
# Warns if a method is used whose availability is newer than the
|
||||
# deployment target.
|
||||
cflags += [ "-Wunguarded-availability" ]
|
||||
}
|
||||
|
||||
|
@ -1896,27 +1894,30 @@ config("default_warnings") {
|
|||
# Ignore warnings about MSVC optimization pragmas.
|
||||
# TODO(thakis): Only for no_chromium_code? http://crbug.com/912662
|
||||
"-Wno-ignored-pragma-optimize",
|
||||
|
||||
# TODO(crbug.com/1343975) Evaluate and possibly enable.
|
||||
"-Wno-deprecated-builtins",
|
||||
|
||||
# TODO(crbug.com/1352183) Evaluate and possibly enable.
|
||||
"-Wno-bitfield-constant-conversion",
|
||||
|
||||
# TODO(crbug.com/1412713) Evaluate and possibly enable.
|
||||
"-Wno-deprecated-this-capture",
|
||||
|
||||
# TODO(https://crbug.com/1491833): Fix and re-enable.
|
||||
"-Wno-invalid-offsetof",
|
||||
|
||||
# TODO(crbug.com/1494809): Evaluate and possibly enable.
|
||||
"-Wno-vla-extension",
|
||||
|
||||
# TODO(https://crbug.com/1490607): Fix and re-enable.
|
||||
"-Wno-thread-safety-reference-return",
|
||||
]
|
||||
|
||||
if (!is_nacl) {
|
||||
cflags += [
|
||||
# TODO(crbug.com/1343975) Evaluate and possibly enable.
|
||||
"-Wno-deprecated-builtins",
|
||||
|
||||
# TODO(crbug.com/1352183) Evaluate and possibly enable.
|
||||
"-Wno-bitfield-constant-conversion",
|
||||
|
||||
# TODO(crbug.com/1412713) Evaluate and possibly enable.
|
||||
"-Wno-deprecated-this-capture",
|
||||
|
||||
# TODO(https://crbug.com/1491833): Fix and re-enable.
|
||||
"-Wno-invalid-offsetof",
|
||||
|
||||
# TODO(crbug.com/1494809): Evaluate and possibly enable.
|
||||
"-Wno-vla-extension",
|
||||
|
||||
# TODO(https://crbug.com/1490607): Fix and re-enable.
|
||||
"-Wno-thread-safety-reference-return",
|
||||
cflags_cc += [
|
||||
# TODO(https://crbug.com/1513724): Fix and re-enable.
|
||||
"-Wno-c++11-narrowing-const-reference",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -2979,7 +2980,7 @@ config("symbols") {
|
|||
]
|
||||
}
|
||||
}
|
||||
rustflags += [ "-g", "-Copt-level=3", "-Ctarget-feature=+aes,+avx", ]
|
||||
rustflags += [ "-g" ]
|
||||
}
|
||||
|
||||
# Minimal symbols.
|
||||
|
|
Loading…
Reference in a new issue