Files
MINGW-packages/mingw-w64-rust/bootstrap.toml
T
مهدي شينون (Mehdi Chinoune) 998e457b02 rust: Fix build and some changes.
- Fix building on clang environments
- Rebuild against LLVM-21 as the linkers from rust-emscripten in "lib/rustlib/${CARCH}-pc-windows-gnullvm/bin/gcc-ld/" depends on LLVM dynamic library.
- change source archive from `.gz` to `.xz` for smaller size (about the half)
- Build less targets for llvm (non-clang envs) to save buildtime (about 40 minutes)
- Fix dependencies.
2025-09-23 05:48:15 +01:00

135 lines
3.5 KiB
TOML

# see src/bootstrap/defaults/
profile = "dist"
# see src/bootstrap/src/utils/change_tracker.rs
change-id = 144675
[llvm]
#download-ci-llvm = false
#targets = "host;WebAssembly"
#experimental-targets = ""
#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
#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"