diff options
Diffstat (limited to 'lang/v8-beta/files')
9 files changed, 54 insertions, 54 deletions
diff --git a/lang/v8-beta/files/patch-BUILD.gn b/lang/v8-beta/files/patch-BUILD.gn index 36393c012109..8ec8de722036 100644 --- a/lang/v8-beta/files/patch-BUILD.gn +++ b/lang/v8-beta/files/patch-BUILD.gn @@ -1,6 +1,6 @@ ---- BUILD.gn.orig 2021-11-15 18:52:12 UTC +--- BUILD.gn.orig 2022-01-23 11:58:51 UTC +++ BUILD.gn -@@ -5090,7 +5090,7 @@ v8_component("v8_libbase") { +@@ -5094,7 +5094,7 @@ v8_component("v8_libbase") { } } @@ -9,7 +9,7 @@ sources += [ "src/base/debug/stack_trace_posix.cc", "src/base/platform/platform-linux.cc", -@@ -5107,6 +5107,12 @@ v8_component("v8_libbase") { +@@ -5111,6 +5111,12 @@ v8_component("v8_libbase") { ] libs = [ "dl" ] @@ -22,7 +22,7 @@ } else if (is_android) { if (current_toolchain == host_toolchain) { libs = [ -@@ -5607,6 +5613,7 @@ if (v8_monolithic) { +@@ -5611,6 +5617,7 @@ if (v8_monolithic) { ":v8_libplatform", "//build/win:default_exe_manifest", ] diff --git a/lang/v8-beta/files/patch-build_config_BUILD.gn b/lang/v8-beta/files/patch-build_config_BUILD.gn index 862adcb37658..3bf0166e6eea 100644 --- a/lang/v8-beta/files/patch-build_config_BUILD.gn +++ b/lang/v8-beta/files/patch-build_config_BUILD.gn @@ -1,6 +1,6 @@ ---- build/config/BUILD.gn.orig 2021-05-26 12:26:11 UTC +--- build/config/BUILD.gn.orig 2022-01-23 11:59:03 UTC +++ build/config/BUILD.gn -@@ -128,7 +128,7 @@ config("debug") { +@@ -125,7 +125,7 @@ config("debug") { # builds, and we have to tell it to turn it off. defines += [ "_HAS_ITERATOR_DEBUGGING=0" ] } @@ -9,7 +9,7 @@ enable_iterator_debugging) { # Enable libstdc++ debugging facilities to help catch problems early, see # http://crbug.com/65151 . -@@ -227,9 +227,7 @@ config("default_libs") { +@@ -224,9 +224,7 @@ config("default_libs") { ] } else if (is_linux || is_chromeos) { libs = [ @@ -19,7 +19,7 @@ ] } } -@@ -308,7 +306,7 @@ config("executable_config") { +@@ -305,7 +303,7 @@ config("executable_config") { "//build/config/ios:ios_dynamic_flags", "//build/config/ios:ios_executable_flags", ] diff --git a/lang/v8-beta/files/patch-build_config_compiler_BUILD.gn b/lang/v8-beta/files/patch-build_config_compiler_BUILD.gn index 7a1db0920063..d13361651345 100644 --- a/lang/v8-beta/files/patch-build_config_compiler_BUILD.gn +++ b/lang/v8-beta/files/patch-build_config_compiler_BUILD.gn @@ -1,4 +1,4 @@ ---- build/config/compiler/BUILD.gn.orig 2021-11-15 18:52:18 UTC +--- build/config/compiler/BUILD.gn.orig 2022-01-23 11:59:03 UTC +++ build/config/compiler/BUILD.gn @@ -140,7 +140,7 @@ declare_args() { # @@ -9,7 +9,7 @@ # This argument is to control whether enabling text section splitting in the # final binary. When enabled, the separated text sections with prefix -@@ -361,7 +361,7 @@ config("compiler") { +@@ -357,7 +357,7 @@ config("compiler") { } # Linker warnings. @@ -18,16 +18,16 @@ current_os != "zos") { ldflags += [ "-Wl,--fatal-warnings" ] } -@@ -539,7 +539,7 @@ config("compiler") { +@@ -534,7 +534,7 @@ config("compiler") { ldflags += [ "-Wl,-z,keep-text-section-prefix" ] } -- if (is_clang && !is_nacl && !use_xcode_clang && current_os != "zos") { -+ if (is_clang && !is_nacl && !use_xcode_clang && !is_bsd && current_os != "zos") { +- if (is_clang && !is_nacl && current_os != "zos") { ++ if (is_clang && !is_nacl && !is_bsd && current_os != "zos") { cflags += [ "-fcrash-diagnostics-dir=" + clang_diagnostic_dir ] # TODO(hans): Remove this once Clang generates better optimized debug info -@@ -910,7 +910,7 @@ config("compiler_cpu_abi") { +@@ -917,7 +917,7 @@ config("compiler_cpu_abi") { cflags += [ "-mtune=$arm_tune" ] } } else if (current_cpu == "arm64") { @@ -36,7 +36,7 @@ cflags += [ "--target=aarch64-linux-gnu" ] ldflags += [ "--target=aarch64-linux-gnu" ] } -@@ -1254,7 +1254,7 @@ config("compiler_deterministic") { +@@ -1238,7 +1238,7 @@ config("compiler_deterministic") { # different build directory like "out/feature_a" and "out/feature_b" if # we build same files with same compile flag. # Other paths are already given in relative, no need to normalize them. @@ -45,7 +45,7 @@ # TODO(https://crbug.com/1231236): Use -ffile-compilation-dir= here. cflags += [ "-Xclang", -@@ -1267,7 +1267,7 @@ config("compiler_deterministic") { +@@ -1251,7 +1251,7 @@ config("compiler_deterministic") { # and -fcoverage-compilation-dir=. cflags += [ "-ffile-compilation-dir=." ] } @@ -54,16 +54,16 @@ # We don't use clang -cc1as on Windows (yet? https://crbug.com/762167) asmflags = [ "-Wa,-fdebug-compilation-dir,." ] } -@@ -1515,7 +1515,7 @@ config("default_warnings") { - cflags += [ "-Wno-null-pointer-subtraction" ] - } +@@ -1502,7 +1502,7 @@ config("default_warnings") { + "-Wno-unneeded-internal-declaration", + ] -- if (current_toolchain == host_toolchain || !use_xcode_clang) { -+ if ((current_toolchain == host_toolchain || !use_xcode_clang) && !is_bsd) { - # Flags Xcode 9.2 (Clang clang-900.0.39.2) does not recognize. - cflags += [ - "-Wenum-compare-conditional", -@@ -1763,7 +1763,7 @@ config("thin_archive") { +- if (!is_nacl || is_nacl_saigo) { ++ if ((!is_nacl || is_nacl_saigo) && !is_bsd) { + if (is_win) { + # TODO(thakis): https://crbug.com/617318 + # Currently goma can not handle case sensitiveness for windows well. +@@ -1791,7 +1791,7 @@ config("thin_archive") { # archives. # TODO(crbug.com/1221615): Enable on is_apple if use_lld once that no longer # confuses lldb. @@ -72,7 +72,7 @@ arflags = [ "-T" ] } else if (is_win && use_lld) { arflags = [ "/llvmlibthin" ] -@@ -2263,7 +2263,7 @@ config("symbols") { +@@ -2289,7 +2289,7 @@ config("symbols") { # flag, so we can use use -g1 for pnacl and nacl-clang compiles. # gcc nacl is is_nacl && !is_clang, pnacl and nacl-clang are && is_clang. if ((!is_nacl || is_clang) && current_os != "zos") { @@ -80,20 +80,20 @@ + cflags += [ "-g0" ] } - # Since only one of the build options -gdwarf-aranges and -fembed-bitcode -@@ -2303,7 +2303,7 @@ config("symbols") { - # DWARF info may be corrupt; offsets in a range list entry are in different + if (!is_nacl && is_clang && !is_tsan && !is_asan && +@@ -2329,7 +2329,7 @@ config("symbols") { # sections" there. Maybe just a bug in nacl_switch_32.S. - if (!is_apple && !is_nacl && current_cpu != "x86" && current_os != "zos" && -- (use_gold || use_lld)) { -+ (use_gold || use_lld) && !is_bsd) { - if (is_clang) { - # This flag enables the GNU-format pubnames and pubtypes sections, - # which lld needs in order to generate a correct GDB index. -@@ -2316,7 +2316,7 @@ config("symbols") { + _enable_gdb_index = + symbol_level == 2 && !is_apple && !is_nacl && current_cpu != "x86" && +- current_os != "zos" && (use_gold || use_lld) && ++ current_os != "zos" && (use_gold || use_lld) && !is_bsd && + # Disable on non-fission 32-bit Android because it pushes + # libcomponents_unittests over the 4gb size limit. + !(is_android && !use_debug_fission && current_cpu != "x64" && +@@ -2347,7 +2347,7 @@ config("symbols") { } - if (is_clang && !is_nacl && !use_xcode_clang && current_os != "zos") { + if (is_clang && (!is_nacl || is_nacl_saigo) && current_os != "zos") { - if (is_apple) { + if (is_apple || is_bsd) { # TODO(https://crbug.com/1050118): Investigate missing debug info on mac. diff --git a/lang/v8-beta/files/patch-build_config_compiler_compiler.gni b/lang/v8-beta/files/patch-build_config_compiler_compiler.gni index 539bd8abd7e2..716914e2fb67 100644 --- a/lang/v8-beta/files/patch-build_config_compiler_compiler.gni +++ b/lang/v8-beta/files/patch-build_config_compiler_compiler.gni @@ -1,6 +1,6 @@ ---- build/config/compiler/compiler.gni.orig 2021-11-15 18:52:18 UTC +--- build/config/compiler/compiler.gni.orig 2022-01-23 11:59:03 UTC +++ build/config/compiler/compiler.gni -@@ -219,7 +219,7 @@ declare_args() { +@@ -224,7 +224,7 @@ declare_args() { declare_args() { # Whether to use the gold linker from binutils instead of lld or bfd. diff --git a/lang/v8-beta/files/patch-build_config_rust.gni b/lang/v8-beta/files/patch-build_config_rust.gni index c0b328a03ad6..522727d59a1a 100644 --- a/lang/v8-beta/files/patch-build_config_rust.gni +++ b/lang/v8-beta/files/patch-build_config_rust.gni @@ -1,11 +1,11 @@ ---- build/config/rust.gni.orig 2021-11-15 18:52:18 UTC +--- build/config/rust.gni.orig 2022-01-23 11:59:03 UTC +++ build/config/rust.gni -@@ -67,7 +67,7 @@ toolchain_has_official_rust = +@@ -66,7 +66,7 @@ toolchain_has_official_rust = (!is_nacl && (is_android && (current_cpu == "arm" || current_cpu == "arm64" || current_cpu == "x64" || current_cpu == "x86"))) || - (is_linux && current_cpu == "x64") + (current_os == "linux" && current_cpu == "x64") - toolchain_has_rust = enable_rust && (toolchain_has_official_rust || - use_unverified_rust_toolchain) + toolchain_has_rust = + enable_rust && (toolchain_has_official_rust || rust_sysroot_absolute != "") diff --git a/lang/v8-beta/files/patch-build_toolchain_gcc__toolchain.gni b/lang/v8-beta/files/patch-build_toolchain_gcc__toolchain.gni index 9b0f2527ee02..efab25893949 100644 --- a/lang/v8-beta/files/patch-build_toolchain_gcc__toolchain.gni +++ b/lang/v8-beta/files/patch-build_toolchain_gcc__toolchain.gni @@ -1,4 +1,4 @@ ---- build/toolchain/gcc_toolchain.gni.orig 2021-11-15 18:52:18 UTC +--- build/toolchain/gcc_toolchain.gni.orig 2022-01-23 11:59:03 UTC +++ build/toolchain/gcc_toolchain.gni @@ -49,6 +49,11 @@ if (enable_resource_allowlist_generation) { "enable_resource_allowlist_generation=true does not work for target_os=$target_os") @@ -12,7 +12,7 @@ # This template defines a toolchain for something that works like gcc # (including clang). # -@@ -731,13 +736,23 @@ template("gcc_toolchain") { +@@ -738,13 +743,23 @@ template("gcc_toolchain") { # use_gold too. template("clang_toolchain") { gcc_toolchain(target_name) { diff --git a/lang/v8-beta/files/patch-include_v8config.h b/lang/v8-beta/files/patch-include_v8config.h index 2a1c5e2972e9..b302d21db2c1 100644 --- a/lang/v8-beta/files/patch-include_v8config.h +++ b/lang/v8-beta/files/patch-include_v8config.h @@ -1,8 +1,8 @@ ---- include/v8config.h.orig 2021-10-06 18:22:58 UTC +--- include/v8config.h.orig 2022-01-23 11:58:51 UTC +++ include/v8config.h -@@ -338,7 +338,18 @@ path. Add it with -I<path> to the command line - - # define V8_HAS_CPP_ATTRIBUTE_NODISCARD (V8_HAS_CPP_ATTRIBUTE(nodiscard)) +@@ -342,7 +342,18 @@ path. Add it with -I<path> to the command line + # define V8_HAS_CPP_ATTRIBUTE_NO_UNIQUE_ADDRESS \ + (V8_HAS_CPP_ATTRIBUTE(no_unique_address)) +// Work around Clang bug present in 9.0.1, at least. +// diff --git a/lang/v8-beta/files/patch-src_api_api.cc b/lang/v8-beta/files/patch-src_api_api.cc index b358824563e8..a853a756e0af 100644 --- a/lang/v8-beta/files/patch-src_api_api.cc +++ b/lang/v8-beta/files/patch-src_api_api.cc @@ -1,6 +1,6 @@ ---- src/api/api.cc.orig 2021-11-15 18:52:12 UTC +--- src/api/api.cc.orig 2022-01-23 11:58:51 UTC +++ src/api/api.cc -@@ -6054,7 +6054,7 @@ bool v8::V8::Initialize(const int build_config) { +@@ -6126,7 +6126,7 @@ bool v8::V8::Initialize(const int build_config) { return true; } diff --git a/lang/v8-beta/files/patch-src_base_platform_platform-posix.cc b/lang/v8-beta/files/patch-src_base_platform_platform-posix.cc index df78a73520f0..effa5c032da2 100644 --- a/lang/v8-beta/files/patch-src_base_platform_platform-posix.cc +++ b/lang/v8-beta/files/patch-src_base_platform_platform-posix.cc @@ -1,6 +1,6 @@ ---- src/base/platform/platform-posix.cc.orig 2021-11-15 18:52:12 UTC +--- src/base/platform/platform-posix.cc.orig 2022-01-23 11:58:51 UTC +++ src/base/platform/platform-posix.cc -@@ -511,7 +511,7 @@ bool OS::DecommitPages(void* address, size_t size) { +@@ -547,7 +547,7 @@ bool OS::FreeAddressSpaceReservation(AddressSpaceReser // static bool OS::HasLazyCommits() { @@ -9,7 +9,7 @@ return true; #else // TODO(bbudge) Return true for all POSIX platforms. -@@ -650,6 +650,12 @@ int OS::GetCurrentThreadId() { +@@ -686,6 +686,12 @@ int OS::GetCurrentThreadId() { return static_cast<int>(syscall(__NR_gettid)); #elif V8_OS_ANDROID return static_cast<int>(gettid()); |