Skip to content

Commit dac6798

Browse files
zmodemcopybara-github
authored andcommitted
Roll clang+rust llvmorg-19-init-10646-g084e2b53-57 : llvmorg-19-init-14561-gecea8371-1 / 32dd3795bce8b347fda786529cf5e42a813e0b7d-2 : 3cf924b934322fd7b514600a7dc84fc517515346-1
https://chromium.googlesource.com/external/github.com/llvm/llvm-project/+log/084e2b53..ecea8371 https://chromium.googlesource.com/external/github.com/rust-lang/rust/+log/32dd3795bce8..3cf924b93432 Also update clang-cl flags to pass "/clang:-O2" after /O2 after llvm/llvm-project#95406 Ran: ./tools/clang/scripts/upload_revision.py ecea8371ff03c15fb3dc27ee4108b98335fd2d63 tools/clang/scripts/sync_deps.py tools/rust/gnrt_stdlib.py third_party/abseil-cpp/generate_def_files.py Bug: 340924169 Change-Id: Ie3680f33261952f66d972398656661090c47726a Disable-Rts: True Binary-Size: Inlining heuristic change, see crbug.com/347984812. Cq-Include-Trybots: chromium/try:chromeos-amd64-generic-cfi-thin-lto-rel Cq-Include-Trybots: chromium/try:dawn-win10-x86-deps-rel Cq-Include-Trybots: chromium/try:lacros-arm64-generic-rel Cq-Include-Trybots: chromium/try:linux-chromeos-dbg Cq-Include-Trybots: chromium/try:linux_chromium_cfi_rel_ng Cq-Include-Trybots: chromium/try:linux_chromium_chromeos_msan_rel_ng Cq-Include-Trybots: chromium/try:linux_chromium_msan_rel_ng Cq-Include-Trybots: chromium/try:mac11-arm64-rel,mac_chromium_asan_rel_ng Cq-Include-Trybots: chromium/try:ios-catalyst,win-asan,android-official Cq-Include-Trybots: chromium/try:fuchsia-arm64-cast-receiver-rel Cq-Include-Trybots: chromium/try:mac-official,linux-official Cq-Include-Trybots: chromium/try:win-official,win32-official Cq-Include-Trybots: chromium/try:win-arm64-rel Cq-Include-Trybots: chromium/try:linux-swangle-try-x64,win-swangle-try-x86 Cq-Include-Trybots: chromium/try:android-cronet-mainline-clang-arm64-dbg Cq-Include-Trybots: chromium/try:android-cronet-mainline-clang-arm64-rel Cq-Include-Trybots: chromium/try:android-cronet-mainline-clang-x86-dbg Cq-Include-Trybots: chromium/try:android-cronet-mainline-clang-x86-rel Cq-Include-Trybots: chromium/try:android-cronet-riscv64-dbg Cq-Include-Trybots: chromium/try:android-cronet-riscv64-rel Cq-Include-Trybots: chrome/try:iphone-device,ipad-device Cq-Include-Trybots: chrome/try:linux-chromeos-chrome Cq-Include-Trybots: chrome/try:win-chrome,win64-chrome,linux-chrome,mac-chrome Cq-Include-Trybots: chrome/try:linux-pgo,mac-pgo,win32-pgo,win64-pgo Cq-Include-Trybots: chromium/try:android-rust-arm32-rel Cq-Include-Trybots: chromium/try:android-rust-arm64-dbg Cq-Include-Trybots: chromium/try:android-rust-arm64-rel Cq-Include-Trybots: chromium/try:linux-rust-x64-dbg Cq-Include-Trybots: chromium/try:linux-rust-x64-rel Cq-Include-Trybots: chromium/try:mac-rust-x64-dbg Cq-Include-Trybots: chromium/try:win-rust-x64-dbg Cq-Include-Trybots: chromium/try:win-rust-x64-rel Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5633975 Reviewed-by: Nico Weber <thakis@chromium.org> Commit-Queue: Hans Wennborg <hans@chromium.org> Cr-Commit-Position: refs/heads/main@{#1317359} NOKEYCHECK=True GitOrigin-RevId: 65d491f36bac46186a87e0cc890bb810dc66c4f1
1 parent 1659da7 commit dac6798

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

build_rust.py

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
RUST_BUILD_DIR = os.path.join(RUST_SRC_DIR, 'build')
112112
RUST_BOOTSTRAP_DIST_RS = os.path.join(RUST_SRC_DIR, 'src', 'bootstrap',
113113
'dist.rs')
114-
STAGE0_JSON_PATH = os.path.join(RUST_SRC_DIR, 'src', 'stage0.json')
114+
STAGE0_JSON_PATH = os.path.join(RUST_SRC_DIR, 'src', 'stage0')
115115
# Download crates.io dependencies to rust-src subdir (rather than $HOME/.cargo)
116116
CARGO_HOME_DIR = os.path.join(RUST_SRC_DIR, 'cargo-home')
117117
RUST_SRC_VERSION_FILE_PATH = os.path.join(RUST_SRC_DIR, 'src', 'version')
@@ -211,7 +211,7 @@ def VerifyStage0JsonHash():
211211
if actual_hash == STAGE0_JSON_SHA256:
212212
return
213213

214-
print('src/stage0.json hash is different than expected!')
214+
print('src/stage0 hash is different than expected!')
215215
print('Expected hash: ' + STAGE0_JSON_SHA256)
216216
print('Actual hash: ' + actual_hash)
217217
sys.exit(1)
@@ -228,21 +228,23 @@ def FetchBetaPackage(name, rust_git_hash, triple=None):
228228
triple = triple if triple else RustTargetTriple()
229229
filename = f'{name}-beta-{triple}'
230230

231-
# Pull the stage0 JSON to find the package intended to be used to
232-
# build this version of the Rust compiler.
231+
# Pull the stage0 to find the package intended to be used to build this
232+
# version of the Rust compiler.
233233
STAGE0_JSON_URL = (
234234
'https://chromium.googlesource.com/external/github.com/'
235-
'rust-lang/rust/+/{GIT_HASH}/src/stage0.json?format=TEXT')
235+
'rust-lang/rust/+/{GIT_HASH}/src/stage0?format=TEXT')
236236
base64_text = urllib.request.urlopen(
237237
STAGE0_JSON_URL.format(GIT_HASH=rust_git_hash)).read().decode("utf-8")
238-
stage0 = json.loads(base64.b64decode(base64_text))
238+
stage0 = base64.b64decode(base64_text).decode("utf-8")
239+
lines = stage0.splitlines()
239240

240-
# The stage0 JSON contains the path to all tarballs it uses binaries from.
241-
for k in stage0['checksums_sha256'].keys():
242-
if k.endswith(filename + '.tar.gz'):
243-
package_tgz = k
241+
# The stage0 file contains the path to all tarballs it uses binaries from.
242+
for l in lines:
243+
if l.startswith('dist_server='):
244+
server = l.split('=')[1]
245+
if (filename + '.tar.gz') in l:
246+
package_tgz = l.split('=')[0]
244247

245-
server = stage0['config']['dist_server']
246248
DownloadAndUnpack(f'{server}/{package_tgz}', LLVM_BUILD_TOOLS_DIR)
247249
return os.path.join(LLVM_BUILD_TOOLS_DIR, filename)
248250

update_rust.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
# In the case that a Rust roll fails and you want to roll Clang alone, reset
3636
# this back to its previous value _AND_ set `OVERRIDE_CLANG_REVISION` below
3737
# to the `CLANG_REVISION` that was in place before the roll.
38-
RUST_REVISION = '32dd3795bce8b347fda786529cf5e42a813e0b7d'
39-
RUST_SUB_REVISION = 2
38+
RUST_REVISION = '3cf924b934322fd7b514600a7dc84fc517515346'
39+
RUST_SUB_REVISION = 1
4040

4141
# If not None, this overrides the `CLANG_REVISION` in
4242
# //tools/clang/scripts/update.py in order to download a Rust toolchain that
@@ -57,7 +57,7 @@
5757
# Hash of src/stage0.json, which itself contains the stage0 toolchain hashes.
5858
# We trust the Rust build system checks, but to ensure it is not tampered with
5959
# itself check the hash.
60-
STAGE0_JSON_SHA256 = '803ce275a74899f722bc03ca12ecce03dfd937b71c9f2f3ff473ea80439ce596'
60+
STAGE0_JSON_SHA256 = '01d041997206abf7da640361381d10134b2f6e3f0ca65fce7172a07387e01730'
6161

6262
THIS_DIR = os.path.abspath(os.path.dirname(__file__))
6363
CHROMIUM_DIR = os.path.abspath(os.path.join(THIS_DIR, '..', '..'))

0 commit comments

Comments
 (0)