Skip to content

Commit a2631a7

Browse files
aeubankscopybara-github
authored andcommitted
Roll clang+rust llvmorg-19-init-14561-gecea8371-3000 : llvmorg-20-init-826-gc95abe94-3 / 3cf924b934322fd7b514600a7dc84fc517515346-4 : 595316b4006932405a63862d8fe65f71a6356293-3
https://chromium.googlesource.com/external/github.com/llvm/llvm-project/+log/ecea8371..c95abe94 https://chromium.googlesource.com/external/github.com/rust-lang/rust/+log/3cf924b93432..595316b40069 Ran: ./tools/clang/scripts/upload_revision.py c95abe94aebb6862c3518e590343df3b7376ccee Ran: tools/clang/scripts/sync_deps.py Ran: tools/rust/gnrt_stdlib.py Due to https://crbug.com/357125724, revert rust-lang/rust#125016 for now. Bug: 348666967, 350341587, 355031922, 356172342, 357125724 Change-Id: I7953b33e8619c145105029f4adc30a0e767b5123 Binary-Size: Compiler update variation Fuchsia-Binary-Size: Compiler update variation Disable-Rts: True 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-riscv64-dbg Cq-Include-Trybots: chromium/try:android-cronet-mainline-clang-riscv64-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/+/5753956 Reviewed-by: Daniel Cheng <[email protected]> Cr-Commit-Position: refs/heads/main@{#1337246} NOKEYCHECK=True GitOrigin-RevId: 546d096fdb2c93d74034005ff73ecd5ee6af2d23
1 parent b3ab9cf commit a2631a7

File tree

5 files changed

+164
-138
lines changed

5 files changed

+164
-138
lines changed

config/compiler/BUILD.gn

+3-5
Original file line numberDiff line numberDiff line change
@@ -1961,10 +1961,8 @@ config("default_warnings") {
19611961
# TODO(crbug.com/344680447): Fix and re-enable.
19621962
cflags_cc += [ "-Wno-missing-template-arg-list-after-template-kw" ]
19631963

1964-
if (llvm_force_head_revision) {
1965-
# TODO(crbug.com/356172342): Fix and re-enable.
1966-
cflags_cc += [ "-Wno-dangling-assignment-gsl" ]
1967-
}
1964+
# TODO(crbug.com/356172342): Fix and re-enable.
1965+
cflags_cc += [ "-Wno-dangling-assignment-gsl" ]
19681966
}
19691967
}
19701968

@@ -1981,7 +1979,7 @@ config("default_warnings") {
19811979
}
19821980

19831981
# TODO(crbug.com/354162568): Clean up and enable.
1984-
if (llvm_force_head_revision && is_apple && use_lld) {
1982+
if (is_apple && use_lld) {
19851983
ldflags += [ "-Wl,--no-warn-duplicate-rpath" ]
19861984
}
19871985

rust/cargo_crate.gni

+13
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,19 @@ template("cargo_crate") {
425425
rust_abi_target,
426426
]
427427
}
428+
if (current_cpu == "arm64" || current_cpu == "x64") {
429+
args += [
430+
"--pointer-width",
431+
"64",
432+
]
433+
} else if (current_cpu == "arm" || current_cpu == "x86") {
434+
args += [
435+
"--pointer-width",
436+
"32",
437+
]
438+
} else {
439+
assert(false, "Architecture not supported")
440+
}
428441
if (defined(invoker.features)) {
429442
args += [ "--features" ]
430443
args += invoker.features

rust/run_build_script.py

+3
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def main():
7676
required=True,
7777
help='where to write output rustc flags')
7878
parser.add_argument('--target', help='rust target triple')
79+
parser.add_argument('--pointer-width', help='rust target pointer width')
7980
parser.add_argument('--features', help='features', nargs='+')
8081
parser.add_argument('--env', help='environment variable', nargs='+')
8182
parser.add_argument('--rust-prefix', required=True, help='rust path prefix')
@@ -103,6 +104,7 @@ def main():
103104
env["OUT_DIR"] = tempdir
104105
env["CARGO_MANIFEST_DIR"] = os.path.abspath(args.src_dir)
105106
env["HOST"] = host_triple(rustc_path)
107+
env["CARGO_CFG_TARGET_POINTER_WIDTH"] = args.pointer_width
106108
if args.target is None:
107109
env["TARGET"] = env["HOST"]
108110
else:
@@ -132,6 +134,7 @@ def main():
132134
env["CARGO_CFG_TARGET_OS"] = "android"
133135
elif env["CARGO_CFG_TARGET_OS"] == "darwin":
134136
env["CARGO_CFG_TARGET_OS"] = "macos"
137+
env["CARGO_CFG_TARGET_POINTER_WIDTH"] = args.pointer_width
135138
if args.features:
136139
for f in args.features:
137140
feature_name = f.upper().replace("-", "_")

0 commit comments

Comments
 (0)