From nobody Tue Jan 25 19:52:59 2022 X-Original-To: dev-commits-ports-main@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 071FD197605B; Tue, 25 Jan 2022 19:53:03 +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 4JjyFS611dz3F2b; Tue, 25 Jan 2022 19:53:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643140381; 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=LhlV7b87QDm5d8UFWdpm1PBErscmmqRUkoc4n9Hf3L8=; b=cs6q1RgPU8tWLJBYet+dmEL8JPLVRyzxmh/x3JUYP/5jCeinZv3hTCZGcvF19/N5aQc2oj twqLh3SQwyRn75q1SLHjXrF8KUY8QDhLB6DhTwpJNJTxm4sPAs208r1zBrnetxynl85XxI iiZ08vikg3wYeF8T66tr02Rkq7mT0UL6JBbKxi0Hc3G9jJ0YymBfrgvOp2ZE2gJVWJQe9f 0+iApeplPHp4yoJEzcVNvt2yc/nXe+E/4iDEJ8iR/YR2wRP8Y5OkUcPA6pVVXgJndrTeFs uZKJ6V0PvIjX+tRoLS1OkrdGF9Yj/O/xakOkuf1m68Uu5WNJLaAzcKlEiKXUiQ== 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 716B67F67; Tue, 25 Jan 2022 19:52:59 +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 20PJqx0O019783; Tue, 25 Jan 2022 19:52:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20PJqxep019782; Tue, 25 Jan 2022 19:52:59 GMT (envelope-from git) Date: Tue, 25 Jan 2022 19:52:59 GMT Message-Id: <202201251952.20PJqxep019782@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: b980e61616fb - main - lang/v8: Update to 9.7.106.19 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@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: b980e61616fb5a511aca9368ccd2f09707fe1269 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643140382; 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=LhlV7b87QDm5d8UFWdpm1PBErscmmqRUkoc4n9Hf3L8=; b=BknMwSXPcZpYYH8nnMhu1Zj7hF8TG1gilhH63+W7z0MTX3j24XZEasVdb0/GQaJ0Q+o8EY 1OtHdduScVXUt0AXuhNVyBu/GroGIdGG5vjfHYPF+Xddzp+37Vas3P5sUpVjuLkToFEbBx qw7hJlviHNqxOsTs6YVZDK1dk7IummtsU6ZEtbeMumt6f+BrRYInxY0aZpYQiMM/lSab57 kOLkTTUwRl7PtRyA47h7kFJR9TfRTP49Mcqa2z07oG6yeU2pdIaXarpCwH6EHE3DytgoIO S+4DS6CaiZI+5d/UF5ZFtqTVqcaoAV/Gzsn7pp8/KLV5T8kraUNx7O+leOYJ2Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643140382; a=rsa-sha256; cv=none; b=HudnV3T9Q7FLPNAEnyvHqFkAAxDmtHJIzehaHGNuruWKLlhf0EcU6utwGO5aoac8m0CsfY Ei6PkxzGZqV7urrKSVd2ddhHdk+IedKIpgxNQ0UpyLggI8c7ZrVTKbAkzl9aoYiNSMgDCD rbI36xcqmz2FtIU4kaOPk2FaeuwFPpNvHcNx0Zx6el0oOQlqYn82MHTz37bHpggWEoL9dw dXpcl3uHfgd4GpRK6JDjQX/6SQ+Y3kmlU5O9CtQREzYL1N354+3+LX0eAlZ0UoGh9Z/aUL vQAGVdhC2oNCwndv4G12aztfKrXYOGWFdUh/Zh8pH59+ih2D409E2fRAN0FTQQ== 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=b980e61616fb5a511aca9368ccd2f09707fe1269 commit b980e61616fb5a511aca9368ccd2f09707fe1269 Author: Po-Chuan Hsieh AuthorDate: 2022-01-25 19:18:34 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-01-25 19:50:00 +0000 lang/v8: Update to 9.7.106.19 Changes: https://v8.dev/blog/v8-release-97 https://chromium.googlesource.com/v8/v8.git/+log/refs/heads/9.7-lkgr --- lang/v8/Makefile | 20 +++++------ lang/v8/distinfo | 34 +++++++++--------- lang/v8/files/patch-BUILD.gn | 8 ++--- lang/v8/files/patch-build_config_BUILDCONFIG.gn | 10 +++--- lang/v8/files/patch-build_config_compiler_BUILD.gn | 40 +++++++++++----------- .../files/patch-build_config_compiler_compiler.gni | 4 +-- lang/v8/files/patch-build_config_rust.gni | 4 +-- ...atch-build_linux_unbundle_replace__gn__files.py | 2 +- .../files/patch-build_toolchain_gcc__toolchain.gni | 18 +++++----- lang/v8/files/patch-build_toolchain_linux_BUILD.gn | 10 ------ lang/v8/files/patch-src_api_api.cc | 4 +-- lang/v8/files/patch-src_base_cpu.cc | 6 ++-- .../patch-src_base_platform_platform-posix.cc | 2 +- lang/v8/files/patch-third__party_zlib_BUILD.gn | 4 +-- 14 files changed, 77 insertions(+), 89 deletions(-) diff --git a/lang/v8/Makefile b/lang/v8/Makefile index 1443c7a5cc30..b57f5dfa5bdb 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.6-lkgr +# https://chromium.googlesource.com/v8/v8/+/refs/heads/9.7-lkgr PORTNAME= v8 -PORTVERSION= 9.6.180.21 +PORTVERSION= 9.7.106.19 CATEGORIES= lang MASTER_SITES= LOCAL/sunpoet/v8/${PORTVERSION:R:R} DISTFILES= v8-${PORTVERSION}.tar.gz \ @@ -37,19 +37,17 @@ USE_LDCONFIG= yes SUB_FILES= v8.pc v8_libbase.pc v8_libplatform.pc -#USE_GITHUB= yes - CPE_VENDOR= google CONFLICTS_INSTALL= v8-beta -BUILD_REV= ebad8533842661f66b9b905e0ee9890a32f628d5 -BUILDTOOLS_REV= a9bc3e283182a586998338a665c7eae17406ec54 -CLANG_REV= c06edd1f455183fc89e9f8c2cf745db8f564d8ea -COMMON_REV= 68d816952258c9d817bba656ee2664b35507f01b -GOOGLETEST_REV= 3b49be074d5c1340eeb447e6a8e78427051e675a -ICU_REV= 3f443830bd52d3aa5fab3c1aa2b6d0848bb5039d -ZLIB_REV= dfa96e81458fb3b39676e45f7e9e000dff789b05 +BUILD_REV= cf325916d58a194a935c26a56fcf6b525d1e2bf4 +BUILDTOOLS_REV= 80e4f838faaf50e18629ae630df1d421f255a62a +CLANG_REV= 21baac0e13389b03d6f805701c75544ed0b1ebb0 +COMMON_REV= 7f36dbc19d31e2aad895c60261ca8f726442bfbb +GOOGLETEST_REV= 16f637fbf4ffc3f7a01fa4eceb7906634565242f +ICU_REV= eedbaf76e49d28465d9119b10c30b82906e606ff +ZLIB_REV= 6da1d53b97c89b07e47714d88cab61f1ce003c68 # 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 2236a0fd9fb0..9a5a569fec6e 100644 --- a/lang/v8/distinfo +++ b/lang/v8/distinfo @@ -1,17 +1,17 @@ -TIMESTAMP = 1641045804 -SHA256 (v8/9.6/v8-9.6.180.21.tar.gz) = fd3fc40d2eeef4919e9e1c103b995093884e217808cc164a40899369fbe43d06 -SIZE (v8/9.6/v8-9.6.180.21.tar.gz) = 27083425 -SHA256 (v8/9.6/build-ebad8533842661f66b9b905e0ee9890a32f628d5.tar.gz) = d8e9e21f48b0a88f456d88bb76fe6381ba2d3429c36f371dbabf11f50c704468 -SIZE (v8/9.6/build-ebad8533842661f66b9b905e0ee9890a32f628d5.tar.gz) = 1357606 -SHA256 (v8/9.6/buildtools-a9bc3e283182a586998338a665c7eae17406ec54.tar.gz) = 4aaec99b3c5cc9bf588a5ddd76efdc024276097a9bdddf1364936f9ddcdf7f78 -SIZE (v8/9.6/buildtools-a9bc3e283182a586998338a665c7eae17406ec54.tar.gz) = 86607 -SHA256 (v8/9.6/clang-c06edd1f455183fc89e9f8c2cf745db8f564d8ea.tar.gz) = 1f03b84dad25f4b80fcb137e00be9efc9f0503146103ec4ac6b792df78700aa7 -SIZE (v8/9.6/clang-c06edd1f455183fc89e9f8c2cf745db8f564d8ea.tar.gz) = 288468 -SHA256 (v8/9.6/common-68d816952258c9d817bba656ee2664b35507f01b.tar.gz) = 6d84abfe22276bf1940b617aa8c320ec098d40c7d6dc83978b157836061f5c34 -SIZE (v8/9.6/common-68d816952258c9d817bba656ee2664b35507f01b.tar.gz) = 10624 -SHA256 (v8/9.6/googletest-3b49be074d5c1340eeb447e6a8e78427051e675a.tar.gz) = 75be476046d5135185521ed95a8c03872d6eb1ff3a2d956ee7d0739936492df6 -SIZE (v8/9.6/googletest-3b49be074d5c1340eeb447e6a8e78427051e675a.tar.gz) = 830864 -SHA256 (v8/9.6/icu-3f443830bd52d3aa5fab3c1aa2b6d0848bb5039d.tar.gz) = 033b914dba13dbb5599ab1e21c652d707c3b5d96184c535c6a3dc65f6c0d610b -SIZE (v8/9.6/icu-3f443830bd52d3aa5fab3c1aa2b6d0848bb5039d.tar.gz) = 43801217 -SHA256 (v8/9.6/zlib-dfa96e81458fb3b39676e45f7e9e000dff789b05.tar.gz) = aefe670a752dd8ac2e6d3e9820cdcb83f660a849750d6da1301bb06be97a2528 -SIZE (v8/9.6/zlib-dfa96e81458fb3b39676e45f7e9e000dff789b05.tar.gz) = 313143 +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 diff --git a/lang/v8/files/patch-BUILD.gn b/lang/v8/files/patch-BUILD.gn index 4c6a23256ce4..36393c012109 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:49:49 UTC +--- BUILD.gn.orig 2021-11-15 18:52:12 UTC +++ BUILD.gn -@@ -5058,7 +5058,7 @@ v8_component("v8_libbase") { +@@ -5090,7 +5090,7 @@ v8_component("v8_libbase") { } } @@ -9,7 +9,7 @@ sources += [ "src/base/debug/stack_trace_posix.cc", "src/base/platform/platform-linux.cc", -@@ -5075,6 +5075,12 @@ v8_component("v8_libbase") { +@@ -5107,6 +5107,12 @@ v8_component("v8_libbase") { ] libs = [ "dl" ] @@ -22,7 +22,7 @@ } else if (is_android) { if (current_toolchain == host_toolchain) { libs = [ -@@ -5574,6 +5580,7 @@ if (v8_monolithic) { +@@ -5607,6 +5613,7 @@ if (v8_monolithic) { ":v8_libplatform", "//build/win:default_exe_manifest", ] diff --git a/lang/v8/files/patch-build_config_BUILDCONFIG.gn b/lang/v8/files/patch-build_config_BUILDCONFIG.gn index f0eca9a79ec7..794a898973cd 100644 --- a/lang/v8/files/patch-build_config_BUILDCONFIG.gn +++ b/lang/v8/files/patch-build_config_BUILDCONFIG.gn @@ -1,6 +1,6 @@ ---- build/config/BUILDCONFIG.gn.orig 2021-10-20 15:47:54 UTC +--- build/config/BUILDCONFIG.gn.orig 2021-11-15 18:52:18 UTC +++ build/config/BUILDCONFIG.gn -@@ -131,7 +131,7 @@ declare_args() { +@@ -136,7 +136,7 @@ declare_args() { is_official_build = false # Set to true when compiling with the Clang compiler. @@ -9,7 +9,7 @@ (current_cpu != "s390x" && current_cpu != "s390" && current_cpu != "ppc64" && current_cpu != "ppc" && current_cpu != "mips" && current_cpu != "mips64" && -@@ -184,8 +184,8 @@ if (host_toolchain == "") { +@@ -189,8 +189,8 @@ if (host_toolchain == "") { # TODO(dpranke): Add some sort of assert here that verifies that # no toolchain omitted host_toolchain from its toolchain_args(). @@ -20,7 +20,7 @@ host_toolchain = "//build/toolchain/linux:clang_$host_cpu" } else if (is_clang) { host_toolchain = "//build/toolchain/linux:clang_$host_cpu" -@@ -222,7 +222,7 @@ if (target_os == "android") { +@@ -229,7 +229,7 @@ if (target_os == "android") { assert(host_os == "linux" || host_os == "mac", "Android builds are only supported on Linux and Mac hosts.") _default_toolchain = "//build/toolchain/android:android_clang_$target_cpu" @@ -29,7 +29,7 @@ # See comments in build/toolchain/cros/BUILD.gn about board compiles. if (is_clang) { _default_toolchain = "//build/toolchain/linux:clang_$target_cpu" -@@ -287,10 +287,11 @@ is_android = current_os == "android" +@@ -296,10 +296,11 @@ is_android = current_os == "android" is_chromeos = current_os == "chromeos" is_fuchsia = current_os == "fuchsia" is_ios = current_os == "ios" diff --git a/lang/v8/files/patch-build_config_compiler_BUILD.gn b/lang/v8/files/patch-build_config_compiler_BUILD.gn index ba07f130a677..7a1db0920063 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-10-20 16:29:11 UTC +--- build/config/compiler/BUILD.gn.orig 2021-11-15 18:52:18 UTC +++ build/config/compiler/BUILD.gn @@ -140,7 +140,7 @@ declare_args() { # @@ -9,25 +9,25 @@ # This argument is to control whether enabling text section splitting in the # final binary. When enabled, the separated text sections with prefix -@@ -355,7 +355,7 @@ config("compiler") { +@@ -361,7 +361,7 @@ config("compiler") { } # Linker warnings. -- if (fatal_linker_warnings && !is_apple && current_os != "aix") { -+ if (fatal_linker_warnings && !is_apple && !is_bsd && current_os != "aix") { +- if (fatal_linker_warnings && !is_apple && current_os != "aix" && ++ if (fatal_linker_warnings && !is_apple && !is_bsd && current_os != "aix" && + current_os != "zos") { ldflags += [ "-Wl,--fatal-warnings" ] } - if (fatal_linker_warnings && is_apple) { -@@ -532,7 +532,7 @@ config("compiler") { +@@ -539,7 +539,7 @@ config("compiler") { ldflags += [ "-Wl,-z,keep-text-section-prefix" ] } -- if (is_clang && !is_nacl && !use_xcode_clang) { -+ if (is_clang && !is_nacl && !use_xcode_clang && !is_bsd) { +- if (is_clang && !is_nacl && !use_xcode_clang && current_os != "zos") { ++ if (is_clang && !is_nacl && !use_xcode_clang && !is_bsd && current_os != "zos") { cflags += [ "-fcrash-diagnostics-dir=" + clang_diagnostic_dir ] # TODO(hans): Remove this once Clang generates better optimized debug info -@@ -903,7 +903,7 @@ config("compiler_cpu_abi") { +@@ -910,7 +910,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" ] } -@@ -1247,7 +1247,7 @@ config("compiler_deterministic") { +@@ -1254,7 +1254,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", -@@ -1260,7 +1260,7 @@ config("compiler_deterministic") { +@@ -1267,7 +1267,7 @@ config("compiler_deterministic") { # and -fcoverage-compilation-dir=. cflags += [ "-ffile-compilation-dir=." ] } @@ -54,7 +54,7 @@ # We don't use clang -cc1as on Windows (yet? https://crbug.com/762167) asmflags = [ "-Wa,-fdebug-compilation-dir,." ] } -@@ -1644,7 +1644,7 @@ config("default_warnings") { +@@ -1515,7 +1515,7 @@ config("default_warnings") { cflags += [ "-Wno-null-pointer-subtraction" ] } @@ -63,7 +63,7 @@ # Flags Xcode 9.2 (Clang clang-900.0.39.2) does not recognize. cflags += [ "-Wenum-compare-conditional", -@@ -1898,7 +1898,7 @@ config("thin_archive") { +@@ -1763,7 +1763,7 @@ config("thin_archive") { # archives. # TODO(crbug.com/1221615): Enable on is_apple if use_lld once that no longer # confuses lldb. @@ -72,28 +72,28 @@ arflags = [ "-T" ] } else if (is_win && use_lld) { arflags = [ "/llvmlibthin" ] -@@ -2398,7 +2398,7 @@ config("symbols") { +@@ -2263,7 +2263,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) { + if ((!is_nacl || is_clang) && current_os != "zos") { - cflags += [ "-g2" ] + cflags += [ "-g0" ] } - if (!is_nacl && is_clang && !is_tsan && !is_asan) { -@@ -2433,7 +2433,7 @@ config("symbols") { + # 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 # sections" there. Maybe just a bug in nacl_switch_32.S. - if (!is_apple && !is_nacl && current_cpu != "x86" && + 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. -@@ -2446,7 +2446,7 @@ config("symbols") { +@@ -2316,7 +2316,7 @@ config("symbols") { } - if (is_clang && !is_nacl && !use_xcode_clang) { + if (is_clang && !is_nacl && !use_xcode_clang && 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 be2f95aa239e..539bd8abd7e2 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-10-20 15:47:54 UTC +--- build/config/compiler/compiler.gni.orig 2021-11-15 18:52:18 UTC +++ build/config/compiler/compiler.gni -@@ -218,7 +218,7 @@ declare_args() { +@@ -219,7 +219,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 b272ec620862..c0b328a03ad6 100644 --- a/lang/v8/files/patch-build_config_rust.gni +++ b/lang/v8/files/patch-build_config_rust.gni @@ -1,6 +1,6 @@ ---- build/config/rust.gni.orig 2021-10-20 15:47:54 UTC +--- build/config/rust.gni.orig 2021-11-15 18:52:18 UTC +++ build/config/rust.gni -@@ -58,7 +58,7 @@ toolchain_has_official_rust = +@@ -67,7 +67,7 @@ toolchain_has_official_rust = (!is_nacl && (is_android && (current_cpu == "arm" || current_cpu == "arm64" || current_cpu == "x64" || current_cpu == "x86"))) || diff --git a/lang/v8/files/patch-build_linux_unbundle_replace__gn__files.py b/lang/v8/files/patch-build_linux_unbundle_replace__gn__files.py index 2df6a0b52bd7..52bbcf7255f5 100644 --- a/lang/v8/files/patch-build_linux_unbundle_replace__gn__files.py +++ b/lang/v8/files/patch-build_linux_unbundle_replace__gn__files.py @@ -1,4 +1,4 @@ ---- build/linux/unbundle/replace_gn_files.py.orig 2021-10-20 16:29:11 UTC +--- build/linux/unbundle/replace_gn_files.py.orig 2021-11-15 18:52:18 UTC +++ build/linux/unbundle/replace_gn_files.py @@ -25,6 +25,7 @@ REPLACEMENTS = { 'libevent': 'base/third_party/libevent/BUILD.gn', diff --git a/lang/v8/files/patch-build_toolchain_gcc__toolchain.gni b/lang/v8/files/patch-build_toolchain_gcc__toolchain.gni index 312cf3bb14c8..9b0f2527ee02 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-10-20 15:47:54 UTC +--- build/toolchain/gcc_toolchain.gni.orig 2021-11-15 18:52:18 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,15 +12,15 @@ # This template defines a toolchain for something that works like gcc # (including clang). # -@@ -736,13 +741,23 @@ template("clang_toolchain") { - } - +@@ -731,13 +736,23 @@ template("gcc_toolchain") { + # use_gold too. + template("clang_toolchain") { gcc_toolchain(target_name) { - prefix = rebase_path("$clang_base_path/bin", root_build_dir) -- cc = "$prefix/clang" -- cxx = "$prefix/clang++" +- cc = "${prefix}/clang" +- cxx = "${prefix}/clang++" - ld = cxx -- readelf = "${toolprefix}readelf" +- readelf = "${prefix}/llvm-readelf" - ar = "${prefix}/llvm-ar" - nm = "${prefix}/llvm-nm" + if (is_bsd) { @@ -28,7 +28,7 @@ + cc = "cc" + cxx = "c++" + ld = cxx -+ readelf = "${toolprefix}readelf" ++ readelf = "${prefix}/readelf" + ar = "${prefix}/ar" + nm = "${prefix}/nm" + } else { @@ -36,7 +36,7 @@ + cc = "$prefix/clang" + cxx = "$prefix/clang++" + ld = cxx -+ readelf = "${toolprefix}readelf" ++ readelf = "${prefix}/readelf" + ar = "${prefix}/llvm-ar" + nm = "${prefix}/llvm-nm" + } diff --git a/lang/v8/files/patch-build_toolchain_linux_BUILD.gn b/lang/v8/files/patch-build_toolchain_linux_BUILD.gn deleted file mode 100644 index 08d5cf924d40..000000000000 --- a/lang/v8/files/patch-build_toolchain_linux_BUILD.gn +++ /dev/null @@ -1,10 +0,0 @@ ---- build/toolchain/linux/BUILD.gn.orig 2021-05-01 21:15:31 UTC -+++ build/toolchain/linux/BUILD.gn -@@ -23,7 +23,6 @@ clang_toolchain("clang_arm") { - } - - clang_toolchain("clang_arm64") { -- toolprefix = "aarch64-linux-gnu-" - toolchain_args = { - current_cpu = "arm64" - current_os = "linux" diff --git a/lang/v8/files/patch-src_api_api.cc b/lang/v8/files/patch-src_api_api.cc index 0413552e070d..b358824563e8 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:49:49 UTC +--- src/api/api.cc.orig 2021-11-15 18:52:12 UTC +++ src/api/api.cc -@@ -5975,7 +5975,7 @@ bool v8::V8::Initialize(const int build_config) { +@@ -6054,7 +6054,7 @@ bool v8::V8::Initialize(const int build_config) { return true; } diff --git a/lang/v8/files/patch-src_base_cpu.cc b/lang/v8/files/patch-src_base_cpu.cc index edded0adef06..21d3d4fb596d 100644 --- a/lang/v8/files/patch-src_base_cpu.cc +++ b/lang/v8/files/patch-src_base_cpu.cc @@ -1,6 +1,6 @@ ---- src/base/cpu.cc.orig 2021-10-06 18:22:58 UTC +--- src/base/cpu.cc.orig 2021-11-15 18:52:12 UTC +++ src/base/cpu.cc -@@ -568,6 +568,7 @@ CPU::CPU() +@@ -575,6 +575,7 @@ CPU::CPU() #if V8_OS_LINUX @@ -8,7 +8,7 @@ CPUInfo cpu_info; // Extract implementor from the "CPU implementer" field. -@@ -601,6 +602,7 @@ CPU::CPU() +@@ -608,6 +609,7 @@ CPU::CPU() } delete[] part; } 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 192c30f5768b..df78a73520f0 100644 --- a/lang/v8/files/patch-src_base_platform_platform-posix.cc +++ b/lang/v8/files/patch-src_base_platform_platform-posix.cc @@ -1,4 +1,4 @@ ---- src/base/platform/platform-posix.cc.orig 2021-10-12 18:11:43 UTC +--- src/base/platform/platform-posix.cc.orig 2021-11-15 18:52:12 UTC +++ src/base/platform/platform-posix.cc @@ -511,7 +511,7 @@ bool OS::DecommitPages(void* address, size_t size) { diff --git a/lang/v8/files/patch-third__party_zlib_BUILD.gn b/lang/v8/files/patch-third__party_zlib_BUILD.gn index 39aca73d5377..4dec42065cb0 100644 --- a/lang/v8/files/patch-third__party_zlib_BUILD.gn +++ b/lang/v8/files/patch-third__party_zlib_BUILD.gn @@ -1,6 +1,6 @@ ---- third_party/zlib/BUILD.gn.orig 2020-11-16 14:31:04 UTC +--- third_party/zlib/BUILD.gn.orig 2021-11-15 18:52:29 UTC +++ third_party/zlib/BUILD.gn -@@ -108,6 +108,8 @@ if (use_arm_neon_optimizations) { +@@ -119,6 +119,8 @@ if (use_arm_neon_optimizations) { defines = [ "CRC32_ARMV8_CRC32" ] if (is_android) { defines += [ "ARMV8_OS_ANDROID" ]