forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
196 additions
and
1,089 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,169 @@ | ||
# Use different pre-set defaults than the global defaults. | ||
# | ||
# See `src/bootstrap/defaults` for more information. | ||
# Note that this has no default value (x.py uses the defaults in `config.example.toml`). | ||
profile = 'dist' | ||
|
||
# Keeps track of major changes made to this configuration. | ||
# | ||
# This value also represents ID of the PR that caused major changes. Meaning, | ||
# you can visit github.com/rust-lang/rust/pull/{change-id} to check for more details. | ||
# | ||
# A 'major change' includes any of the following | ||
# - A new option | ||
# - A change in the default values | ||
# | ||
# If `change-id` does not match the version that is currently running, | ||
# `x.py` will prompt you to update it and check the related PR for more details. | ||
change-id = 116998 | ||
|
||
[llvm] | ||
|
||
# Whether to use Rust CI built LLVM instead of locally building it. | ||
# | ||
# Unless you're developing for a target where Rust CI doesn't build a compiler | ||
# toolchain or changing LLVM locally, you probably want to leave this enabled. | ||
# | ||
# All tier 1 targets are currently supported; set this to `"if-available"` if | ||
# you are not sure whether you're on a tier 1 target. | ||
# | ||
# We also currently only support this when building LLVM for the build triple. | ||
# | ||
# Note that many of the LLVM options are not currently supported for | ||
# downloading. Currently only the "assertions" option can be toggled. | ||
download-ci-llvm = "if-available" | ||
|
||
# Indicates whether ccache is used when building LLVM. Set to `true` to use the first `ccache` in | ||
# PATH, or set an absolute path to use a specific version. | ||
ccache = 'sccache' | ||
|
||
# Whether to use Ninja to build LLVM. This runs much faster than make. | ||
ninja = true | ||
|
||
[build] | ||
|
||
# Build triple for the pre-compiled snapshot compiler. If `rustc` is set, this must match its host | ||
# triple (see `rustc --version --verbose`; cross-compiling the rust build system itself is NOT | ||
# supported). If `rustc` is unset, this must be a platform with pre-compiled host tools | ||
# (https://doc.rust-lang.org/nightly/rustc/platform-support.html). The current platform must be | ||
# able to run binaries of this build triple. | ||
# | ||
# If `rustc` is present in path, this defaults to the host it was compiled for. | ||
# Otherwise, `x.py` will try to infer it from the output of `uname`. | ||
# If `uname` is not found in PATH, we assume this is `x86_64-pc-windows-msvc`. | ||
# This may be changed in the future. | ||
build = 'x86_64-apple-darwin' | ||
|
||
# Which triples to produce a compiler toolchain for. Each of these triples will be bootstrapped from | ||
# the build triple themselves. In other words, this is the list of triples for which to build a | ||
# compiler that can RUN on that triple. | ||
# | ||
# Defaults to just the `build` triple. | ||
host = ['aarch64-apple-darwin'] | ||
|
||
# Which triples to build libraries (core/alloc/std/test/proc_macro) for. Each of these triples will | ||
# be bootstrapped from the build triple themselves. In other words, this is the list of triples for | ||
# which to build a library that can CROSS-COMPILE to that triple. | ||
# | ||
# Defaults to `host`. If you set this explicitly, you likely want to add all | ||
# host triples to this list as well in order for those host toolchains to be | ||
# able to compile programs for their native target. | ||
target = ['aarch64-apple-darwin'] | ||
|
||
# Whether to build documentation by default. If false, rustdoc and | ||
# friends will still be compiled but they will not be used to generate any | ||
# documentation. | ||
# | ||
# You can still build documentation when this is disabled by explicitly passing paths, | ||
# e.g. `x doc library`. | ||
docs = false | ||
|
||
# Indicate whether git submodules are managed and updated automatically. | ||
submodules = false | ||
|
||
# Force Cargo to check that Cargo.lock describes the precise dependency | ||
# set that all the Cargo.toml files create, instead of updating it. | ||
locked-deps = true | ||
|
||
# Indicates whether the native libraries linked into Cargo will be statically | ||
# linked or not. | ||
cargo-native-static = true | ||
|
||
# Print out how long each rustbuild step took (mostly intended for CI and | ||
# tracking over time) | ||
print-step-timings = false | ||
|
||
# Collect information and statistics about the current build and writes it to | ||
# disk. Enabling this or not has no impact on the resulting build output. The | ||
# schema of the file generated by the build metrics feature is unstable, and | ||
# this is not intended to be used during local development. | ||
metrics = false | ||
|
||
[install] | ||
|
||
[rust] | ||
|
||
# Sets the number of codegen units to build the standard library with, | ||
# regardless of what the codegen-unit setting for the rest of the compiler is. | ||
# NOTE: building with anything other than 1 is known to occasionally have bugs. | ||
codegen-units = 16 | ||
codegen-units-std = 256 | ||
|
||
# The "channel" for the Rust build to produce. The stable/beta channels only | ||
# allow using stable features, whereas the nightly and dev channels allow using | ||
# nightly features | ||
channel = 'nightly' | ||
|
||
# Prints each test name as it is executed, to help debug issues in the test harness itself. | ||
verbose-tests = false | ||
|
||
# Whether to create a source tarball by default when running `x dist`. | ||
# | ||
# You can still build a source tarball when this is disabled by explicitly passing `x dist rustc-src`. | ||
dist-src = false | ||
|
||
debug-logging = false | ||
incremental = false | ||
backtrace-on-ice = false | ||
|
||
# This is an array of the codegen backends that will be compiled for the rustc | ||
# that's being compiled. The default is to only build the LLVM codegen backend, | ||
# and currently the only standard options supported are `"llvm"`, `"cranelift"` | ||
# and `"gcc"`. The first backend in this list will be used as default by rustc | ||
# when no explicit backend is specified. | ||
codegen-backends = ['llvm'] | ||
|
||
# Whether to verify generated LLVM IR | ||
verify-llvm-ir = false | ||
|
||
# Link the compiler and LLVM against `jemalloc` instead of the default libc allocator. | ||
# This option is only tested on Linux and OSX. | ||
jemalloc = false | ||
|
||
# Select LTO mode that will be used for compiling rustc. By default, thin local LTO | ||
# (LTO within a single crate) is used (like for any Rust crate). You can also select | ||
# "thin" or "fat" to apply Thin/Fat LTO to the `rustc_driver` dylib, or "off" to disable | ||
# LTO entirely. | ||
lto = 'thin' | ||
|
||
[target.x86_64-apple-darwin] | ||
|
||
[target.aarch64-apple-darwin] | ||
|
||
[dist] | ||
|
||
# Whether to allow failures when building tools | ||
missing-tools = true | ||
|
||
# List of compression formats to use when generating dist tarballs. The list of | ||
# formats is provided to rust-installer, which must support all of them. | ||
# | ||
# This list must be non-empty. | ||
compression-formats = ['xz'] | ||
|
||
# How much time should be spent compressing the tarballs. The better the | ||
# compression profile, the longer compression will take. | ||
# | ||
# Available options: fast, balanced, best | ||
compression-profile = 'balanced' | ||
|
Oops, something went wrong.