- use fat lto as a way to get a bit more optimizations - integrate some config from 22778
123 lines
3.2 KiB
TOML
123 lines
3.2 KiB
TOML
# see src/bootstrap/defaults/
|
|
profile = "dist"
|
|
|
|
# see src/bootstrap/src/utils/change_tracker.rs
|
|
change-id = 140732
|
|
|
|
[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
|
|
ccache = false
|
|
|
|
# Generating docs fails with the wasm32-* targets
|
|
docs = false
|
|
|
|
[install]
|
|
prefix = "$INSTALL_PREFIX"
|
|
sysconfdir = "etc"
|
|
|
|
[rust]
|
|
#debug = true
|
|
codegen-units-std = 1
|
|
#debuginfo-level-std = 2
|
|
channel = "stable"
|
|
rpath = false
|
|
frame-pointers = true
|
|
llvm-bitcode-linker = false
|
|
lld = false
|
|
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
|
|
#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"
|
|
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"
|