From nobody Mon Feb 28 12:51:08 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D416719F32CF; Mon, 28 Feb 2022 12:51:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K6gH12f8pz3hgF; Mon, 28 Feb 2022 12:51:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646052669; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=p4XiMRKgxzdxdRsx674SMRAeCiO4YEHltQezy6C2g6I=; b=P/hn8O35CQMeinBOnD0voo5Icb11XkanG9c5u/gPv6TnU2CmRm5pMu4lbLjGBwT49UAYyJ WHsdinvvHYrCK6IR91Ar7W2Cwtm1f7jhwsgmuKIMiZKomGDK4YvFFmAcwCO2cjUs8G4Din JnuQ7O7LnADb8Aou6tbZCsDUWix+14LKK66bTmLKpVLQg6JOnuXQ6y66SnzlaVQzfBwVDA GABGfbKhlKeCjbeLlGo1Ex7VqCn+NJN/hFKA0KIiM43mH5qjp3JYeY1zhD/eKlvDe/nu2P StYj8Gb1IH+remTs5DD4SN2yWYq3BumX3LONZq3jn/UgK262xoYk+HRD3/zSLg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C19C81B875; Mon, 28 Feb 2022 12:51:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21SCp8Ms062464; Mon, 28 Feb 2022 12:51:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21SCp8mb062449; Mon, 28 Feb 2022 12:51:08 GMT (envelope-from git) Date: Mon, 28 Feb 2022 12:51:08 GMT Message-Id: <202202281251.21SCp8mb062449@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 129dc0398de3 - main - lang/v8: Update to 9.8.177.9 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 129dc0398de3a43907383f339b2c86d0cf843b3a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646052669; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=p4XiMRKgxzdxdRsx674SMRAeCiO4YEHltQezy6C2g6I=; b=hKp3FiuAm39fY4LmW7GTl8uCNTBmxZUAh05tDLy39CONd4bbik1MELRdUAAFS5FucXviUI 6zMdNf9MDHccH34YqbmkjfzytNz317jwbMumteb1nQKg2AA3U7S6ree14Af4fP5DAlVFTV ais3b98NSQwM5W/Jx/94xhEvnanqlO1cLCL705V+/JPrtcQsMhKfOUzLmce3x9+iT6YYgp 3hScGq0XFXZ8fN6aeHGKJQrurnMF0ZEUAxe8Rmh1j1MDNWe1UnkdBfa2IrNqnjq/7fEgML 3U3nnTUQO/HCizQBK/+edZLg/nTPixhlbB87h4Xc3WsHx3B+B4SOYNPcVxoMxg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646052669; a=rsa-sha256; cv=none; b=b3FsGMpSj5RaVQFMliYpa/HtSWGYnIFqt6p0cJWAs49BxBkrEbVcNxUkn8Rrqt8i5KIBFV N2PbfBaYHDLit5IryCj0FEBHwWRZ9g8b4MzUDjnToelGY86WsqrjAVBFiAKPYEfsqjIVI3 GXn8WZ39H6BExjMYBg1FrXyNKto649pjmhOtdtaFnTxm8NAyzV/2baNRRrb8mAXBCWx/XU FkVmnEWrzfGEEeJ6LArLAYyUo6R9vvIDqGmAucW7bMl+IXlq/CvEb5h4TsNXhsAGEU7O6E NPAKNhEQl/mjLyQlSTpXsxwWzyoi5zzWsPScBqmQEJAv/n+2zaMzxXtWGTKKGQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=129dc0398de3a43907383f339b2c86d0cf843b3a commit 129dc0398de3a43907383f339b2c86d0cf843b3a Author: Po-Chuan Hsieh AuthorDate: 2022-02-28 09:33:18 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-02-28 12:46:02 +0000 lang/v8: Update to 9.8.177.9 Changes: https://v8.dev/blog/v8-release-98 https://chromium.googlesource.com/v8/v8.git/+log/refs/heads/9.8-lkgr --- lang/v8/Makefile | 16 +++--- lang/v8/distinfo | 34 ++++++------- lang/v8/files/patch-BUILD.gn | 8 +-- lang/v8/files/patch-build_config_BUILD.gn | 8 +-- lang/v8/files/patch-build_config_compiler_BUILD.gn | 58 +++++++++++----------- .../files/patch-build_config_compiler_compiler.gni | 4 +- lang/v8/files/patch-build_config_rust.gni | 8 +-- .../files/patch-build_toolchain_gcc__toolchain.gni | 4 +- lang/v8/files/patch-include_v8config.h | 8 +-- lang/v8/files/patch-src_api_api.cc | 4 +- .../patch-src_base_platform_platform-posix.cc | 6 +-- lang/v8/pkg-plist | 1 + 12 files changed, 80 insertions(+), 79 deletions(-) diff --git a/lang/v8/Makefile b/lang/v8/Makefile index e849c6562d53..901368155f54 100644 --- a/lang/v8/Makefile +++ b/lang/v8/Makefile @@ -1,8 +1,8 @@ # We follow the stable channel on https://omahaproxy.appspot.com/ -# https://chromium.googlesource.com/v8/v8/+/refs/heads/9.7-lkgr +# https://chromium.googlesource.com/v8/v8/+/refs/heads/9.8-lkgr PORTNAME= v8 -PORTVERSION= 9.7.106.19 +PORTVERSION= 9.8.177.9 CATEGORIES= lang MASTER_SITES= LOCAL/sunpoet/v8/${PORTVERSION:R:R} DISTFILES= v8-${PORTVERSION}.tar.gz \ @@ -43,13 +43,13 @@ CPE_VENDOR= google CONFLICTS_INSTALL= v8-beta -BUILD_REV= cf325916d58a194a935c26a56fcf6b525d1e2bf4 -BUILDTOOLS_REV= 80e4f838faaf50e18629ae630df1d421f255a62a -CLANG_REV= 21baac0e13389b03d6f805701c75544ed0b1ebb0 +BUILD_REV= 9cfc74504f0c5093fe6799e70f15bded2423b5b4 +BUILDTOOLS_REV= 075dd7e22837a69189003e4fa84499acf63188cf +CLANG_REV= 336fcfd099995c128bc93e97b8263cc6fc891cc8 COMMON_REV= 7f36dbc19d31e2aad895c60261ca8f726442bfbb -GOOGLETEST_REV= 16f637fbf4ffc3f7a01fa4eceb7906634565242f -ICU_REV= eedbaf76e49d28465d9119b10c30b82906e606ff -ZLIB_REV= 6da1d53b97c89b07e47714d88cab61f1ce003c68 +GOOGLETEST_REV= 4c5650f68866e3c2e60361d5c4c95c6f335fb64b +ICU_REV= edf883ad2db9c723b058a6a17a146d68d6343143 +ZLIB_REV= efd9399ae01364926be2a38946127fdf463480db # Run "gn args --list out/Release" for all variables. # Some parts don't have use_system_* flag, and can be turned on/off by using diff --git a/lang/v8/distinfo b/lang/v8/distinfo index 9a5a569fec6e..afed509bdbbc 100644 --- a/lang/v8/distinfo +++ b/lang/v8/distinfo @@ -1,17 +1,17 @@ -TIMESTAMP = 1643133659 -SHA256 (v8/9.7/v8-9.7.106.19.tar.gz) = 90321cc252be625f050c26eeed5e4b98450782f8ef88e9db7e259c5f789e594b -SIZE (v8/9.7/v8-9.7.106.19.tar.gz) = 27222789 -SHA256 (v8/9.7/build-cf325916d58a194a935c26a56fcf6b525d1e2bf4.tar.gz) = 41d40b8a5d229207f06df96808c7fb4677f0b6c3352b4d322563bcd9e1af8d2a -SIZE (v8/9.7/build-cf325916d58a194a935c26a56fcf6b525d1e2bf4.tar.gz) = 1359676 -SHA256 (v8/9.7/buildtools-80e4f838faaf50e18629ae630df1d421f255a62a.tar.gz) = 4744899438381aab671aa9587ebb76a73d176a3bb93726685772c675eaa9c6a3 -SIZE (v8/9.7/buildtools-80e4f838faaf50e18629ae630df1d421f255a62a.tar.gz) = 86765 -SHA256 (v8/9.7/clang-21baac0e13389b03d6f805701c75544ed0b1ebb0.tar.gz) = 6aedadb4fc21499ada70b4fce41343e7ae5c4da41a4d0ab15adc19176569b438 -SIZE (v8/9.7/clang-21baac0e13389b03d6f805701c75544ed0b1ebb0.tar.gz) = 291551 -SHA256 (v8/9.7/common-7f36dbc19d31e2aad895c60261ca8f726442bfbb.tar.gz) = a09d581f42705f5c31a4eae0450e45dd34643ed61db449111dc200d71f7e37c3 -SIZE (v8/9.7/common-7f36dbc19d31e2aad895c60261ca8f726442bfbb.tar.gz) = 10491 -SHA256 (v8/9.7/googletest-16f637fbf4ffc3f7a01fa4eceb7906634565242f.tar.gz) = 8c9ebaaf090de7e2703fcd61e7027a91ab9071ab23a1df95b8d27accba5f088d -SIZE (v8/9.7/googletest-16f637fbf4ffc3f7a01fa4eceb7906634565242f.tar.gz) = 831669 -SHA256 (v8/9.7/icu-eedbaf76e49d28465d9119b10c30b82906e606ff.tar.gz) = aacf852a7bc1bd2744cb27601b2dcb74fa3505d3eb898de16ec59d027d792def -SIZE (v8/9.7/icu-eedbaf76e49d28465d9119b10c30b82906e606ff.tar.gz) = 43814466 -SHA256 (v8/9.7/zlib-6da1d53b97c89b07e47714d88cab61f1ce003c68.tar.gz) = 6265faae2e649ddb51fdf59518c08d5cb22b3e552f6cad219f65a26b02ac5474 -SIZE (v8/9.7/zlib-6da1d53b97c89b07e47714d88cab61f1ce003c68.tar.gz) = 313216 +TIMESTAMP = 1643970994 +SHA256 (v8/9.8/v8-9.8.177.9.tar.gz) = 98cbbad48c1ac97871304a50220e41a18e632dd415b072bc82f9f6178059505d +SIZE (v8/9.8/v8-9.8.177.9.tar.gz) = 27365748 +SHA256 (v8/9.8/build-9cfc74504f0c5093fe6799e70f15bded2423b5b4.tar.gz) = 15703b71589b1d0bf6ee666d62b413ff0ac3b29448a8396e22994d6b7e6ed037 +SIZE (v8/9.8/build-9cfc74504f0c5093fe6799e70f15bded2423b5b4.tar.gz) = 1380406 +SHA256 (v8/9.8/buildtools-075dd7e22837a69189003e4fa84499acf63188cf.tar.gz) = 952ff349a2cbda6ecab58458a9c473c68acd8ae71386f0304c3c877f42bf5468 +SIZE (v8/9.8/buildtools-075dd7e22837a69189003e4fa84499acf63188cf.tar.gz) = 87271 +SHA256 (v8/9.8/clang-336fcfd099995c128bc93e97b8263cc6fc891cc8.tar.gz) = b284869f82815c194926f2fec6fbccbce5b48ae43720173320098d3a49652a0e +SIZE (v8/9.8/clang-336fcfd099995c128bc93e97b8263cc6fc891cc8.tar.gz) = 292729 +SHA256 (v8/9.8/common-7f36dbc19d31e2aad895c60261ca8f726442bfbb.tar.gz) = 5757e6ba719c12168b8787543eb2c9d08630435daa02a04e124ab349ed53bfaa +SIZE (v8/9.8/common-7f36dbc19d31e2aad895c60261ca8f726442bfbb.tar.gz) = 10490 +SHA256 (v8/9.8/googletest-4c5650f68866e3c2e60361d5c4c95c6f335fb64b.tar.gz) = 42cc6bf8f7b502a72af135b10afdae3600e54d29f5a2ec7fe37840629a18dbb5 +SIZE (v8/9.8/googletest-4c5650f68866e3c2e60361d5c4c95c6f335fb64b.tar.gz) = 832346 +SHA256 (v8/9.8/icu-edf883ad2db9c723b058a6a17a146d68d6343143.tar.gz) = d78b88d872c31b88c79eaaa80e96dd7692edde65bf6d36f57dc59af8bc5fcdb5 +SIZE (v8/9.8/icu-edf883ad2db9c723b058a6a17a146d68d6343143.tar.gz) = 51809103 +SHA256 (v8/9.8/zlib-efd9399ae01364926be2a38946127fdf463480db.tar.gz) = edb4335e9be454c741b3bdc2af46955fb37f937b7b40f534b55e4b92c0819150 +SIZE (v8/9.8/zlib-efd9399ae01364926be2a38946127fdf463480db.tar.gz) = 313373 diff --git a/lang/v8/files/patch-BUILD.gn b/lang/v8/files/patch-BUILD.gn index 36393c012109..8ec8de722036 100644 --- a/lang/v8/files/patch-BUILD.gn +++ b/lang/v8/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/files/patch-build_config_BUILD.gn b/lang/v8/files/patch-build_config_BUILD.gn index 862adcb37658..3bf0166e6eea 100644 --- a/lang/v8/files/patch-build_config_BUILD.gn +++ b/lang/v8/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/files/patch-build_config_compiler_BUILD.gn b/lang/v8/files/patch-build_config_compiler_BUILD.gn index 7a1db0920063..d13361651345 100644 --- a/lang/v8/files/patch-build_config_compiler_BUILD.gn +++ b/lang/v8/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/files/patch-build_config_compiler_compiler.gni b/lang/v8/files/patch-build_config_compiler_compiler.gni index 539bd8abd7e2..716914e2fb67 100644 --- a/lang/v8/files/patch-build_config_compiler_compiler.gni +++ b/lang/v8/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/files/patch-build_config_rust.gni b/lang/v8/files/patch-build_config_rust.gni index c0b328a03ad6..522727d59a1a 100644 --- a/lang/v8/files/patch-build_config_rust.gni +++ b/lang/v8/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/files/patch-build_toolchain_gcc__toolchain.gni b/lang/v8/files/patch-build_toolchain_gcc__toolchain.gni index 9b0f2527ee02..efab25893949 100644 --- a/lang/v8/files/patch-build_toolchain_gcc__toolchain.gni +++ b/lang/v8/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/files/patch-include_v8config.h b/lang/v8/files/patch-include_v8config.h index 2a1c5e2972e9..b302d21db2c1 100644 --- a/lang/v8/files/patch-include_v8config.h +++ b/lang/v8/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 to the command line - - # define V8_HAS_CPP_ATTRIBUTE_NODISCARD (V8_HAS_CPP_ATTRIBUTE(nodiscard)) +@@ -342,7 +342,18 @@ path. Add it with -I 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/files/patch-src_api_api.cc b/lang/v8/files/patch-src_api_api.cc index b358824563e8..a853a756e0af 100644 --- a/lang/v8/files/patch-src_api_api.cc +++ b/lang/v8/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/files/patch-src_base_platform_platform-posix.cc b/lang/v8/files/patch-src_base_platform_platform-posix.cc index df78a73520f0..effa5c032da2 100644 --- a/lang/v8/files/patch-src_base_platform_platform-posix.cc +++ b/lang/v8/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(syscall(__NR_gettid)); #elif V8_OS_ANDROID return static_cast(gettid()); diff --git a/lang/v8/pkg-plist b/lang/v8/pkg-plist index cf478d172883..79585dd8a9f1 100644 --- a/lang/v8/pkg-plist +++ b/lang/v8/pkg-plist @@ -52,6 +52,7 @@ include/v8-data.h include/v8-date.h include/v8-debug.h include/v8-embedder-heap.h +include/v8-embedder-state-scope.h include/v8-exception.h include/v8-extension.h include/v8-external.h