Files
MINGW-packages/mingw-w64-rust/bootstrap.toml
Maksim Bondarenkov 9944cf4cd9 rust: update to 1.89.0 (#22778)
- perform PGO for rustc via opt-dist tool (addresses 19273): 
  - various backports (available in
1.90.0) to match our environment better and fix some bugs 
  - do not profile LLVM, because it makes backend performance even worse: rust-lang/rust\#144318 
  - on UCRT64 do a separate LLVM build with clang+lld so it will be linkable with PGOed rustc 
  - bootstrap.toml changes to match requirements for opt-dist (and get some more optimizations)

- CXXFLAGS workaround to actually perform LTO for llvm-wrapper (from rustc_llvm)
- ensure that clang+lld is used for whole build
2025-08-08 00:37:05 +03:00

134 lines
3.5 KiB
TOML

# see src/bootstrap/defaults/
profile = "dist"
# see src/bootstrap/src/utils/change_tracker.rs
change-id = 142379
[llvm]
#download-ci-llvm = false
#link-shared = false
#use-linker = "lld"
#build-config = { "Python3_EXECUTABLE" = "$MINGW_PREFIX/bin/python.exe" }
[build]
#cargo = "$MINGW_PREFIX/bin/cargo.exe"
#rustc = "$MINGW_PREFIX/bin/rustc.exe"
#rustfmt = "$MINGW_PREFIX/bin/rustfmt.exe"
#cargo-clippy = "$MINGW_PREFIX/bin/cargo-clippy.exe"
description = "Rev$PKGREL, Built by MSYS2 project"
submodules = false
build = "$OSTYPE"
host = ["$OSTYPE"]
target = [
"$OSTYPE",
]
build-dir = "build-$MSYSTEM"
python = "$MINGW_PREFIX/bin/python.exe"
locked-deps = true
vendor = true
tools = [
"cargo",
]
profiler = true
metrics = true
ccache = false
# Generating docs fails with the wasm32-* targets
docs = false
[install]
prefix = "$INSTALL_PREFIX"
sysconfdir = "etc"
[rust]
#debug = true
codegen-units = 1
codegen-units-std = 1
#debuginfo-level-std = 2
channel = "stable"
rpath = false
frame-pointers = true
llvm-bitcode-linker = false
lld = false
#use-lld = "external"
llvm-tools = false
codegen-tests = false
deny-warnings = false
backtrace-on-ice = true
remap-debuginfo = false
# FIXME: Control Flow Guard works only on gnullvm targets, in other cases it's ignored
# https://github.com/rust-lang/rust/pull/132965
control-flow-guard = true
new-symbol-mangling = true
#lto = "fat"
[dist]
compression-formats = ["gz"]
compression-profile = "fast"
include-mingw-linker = false
[target.$OSTYPE]
cc = "$MINGW_PREFIX/bin/clang.exe"
cxx = "$MINGW_PREFIX/bin/clang++.exe"
ar = "$MINGW_PREFIX/bin/llvm-ar.exe"
ranlib = "$MINGW_PREFIX/bin/llvm-ranlib.exe"
linker = "$MINGW_PREFIX/bin/clang.exe"
llvm-config = "$MINGW_PREFIX/bin/llvm-config.exe"
[target.wasm32-unknown-unknown]
cc = "$MINGW_PREFIX/bin/clang.exe"
cxx = "$MINGW_PREFIX/bin/clang++.exe"
ar = "$MINGW_PREFIX/bin/llvm-ar.exe"
ranlib = "$MINGW_PREFIX/bin/llvm-ranlib.exe"
linker = "$MINGW_PREFIX/bin/wasm-ld.exe"
default-linker = "wasm-ld.exe"
profiler = false
[target.wasm32-unknown-emscripten]
cc = "$MINGW_PREFIX/lib/emscripten/emcc.bat"
cxx = "$MINGW_PREFIX/lib/emscripten/em++.bat"
ar = "$MINGW_PREFIX/lib/emscripten/emar.bat"
ranlib = "$MINGW_PREFIX/lib/emscripten/emranlib.bat"
linker = "$MINGW_PREFIX/bin/wasm-ld.exe"
default-linker = "wasm-ld.exe"
profiler = false
[target.wasm32v1-none]
cc = "$MINGW_PREFIX/bin/clang.exe"
cxx = "$MINGW_PREFIX/bin/clang++.exe"
ar = "$MINGW_PREFIX/bin/llvm-ar.exe"
ranlib = "$MINGW_PREFIX/bin/llvm-ranlib.exe"
linker = "$MINGW_PREFIX/bin/wasm-ld.exe"
default-linker = "wasm-ld.exe"
profiler = false
[target.wasm32-wasip1]
cc = "$MINGW_PREFIX/bin/clang.exe"
cxx = "$MINGW_PREFIX/bin/clang++.exe"
ar = "$MINGW_PREFIX/bin/llvm-ar.exe"
ranlib = "$MINGW_PREFIX/bin/llvm-ranlib.exe"
linker = "$MINGW_PREFIX/bin/wasm-ld.exe"
default-linker = "wasm-ld.exe"
profiler = false
wasi-root = "$MINGW_PREFIX/share/wasi-sysroot"
[target.wasm32-wasip1-threads]
cc = "$MINGW_PREFIX/bin/clang.exe"
cxx = "$MINGW_PREFIX/bin/clang++.exe"
ar = "$MINGW_PREFIX/bin/llvm-ar.exe"
ranlib = "$MINGW_PREFIX/bin/llvm-ranlib.exe"
linker = "$MINGW_PREFIX/bin/wasm-ld.exe"
default-linker = "wasm-ld.exe"
profiler = false
wasi-root = "$MINGW_PREFIX/share/wasi-sysroot"
[target.wasm32-wasip2]
cc = "$MINGW_PREFIX/bin/clang.exe"
cxx = "$MINGW_PREFIX/bin/clang++.exe"
ar = "$MINGW_PREFIX/bin/llvm-ar.exe"
ranlib = "$MINGW_PREFIX/bin/llvm-ranlib.exe"
linker = "$MINGW_PREFIX/bin/wasm-ld.exe"
default-linker = "wasm-ld.exe"
profiler = false
wasi-root = "$MINGW_PREFIX/share/wasi-sysroot"