]> git.proxmox.com Git - rustc.git/blame - config.toml.example
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / config.toml.example
CommitLineData
ea8adc8c
XL
1# Sample TOML configuration file for building Rust.
2#
3# To configure rustbuild, copy this file to the directory from which you will be
4# running the build, and name it config.toml.
5#
6# All options are commented out by default in this file, and they're commented
7# out with their default values. The build system by default looks for
8# `config.toml` in the current directory of a build for build configuration, but
9# a custom configuration file can also be specified with `--config` to the build
10# system.
11
1b1a35ee
XL
12# Keeps track of the last version of `x.py` used.
13# If it does not match the version that is currently running,
14# `x.py` will prompt you to update it and read the changelog.
15# See `src/bootstrap/CHANGELOG.md` for more information.
29967ef6 16changelog-seen = 2
1b1a35ee
XL
17
18# =============================================================================
19# Global Settings
20# =============================================================================
21
22# Use different pre-set defaults than the global defaults.
23#
24# See `src/bootstrap/defaults` for more information.
25# Note that this has no default value (x.py uses the defaults in `config.toml.example`).
26#profile = <none>
27
ea8adc8c
XL
28# =============================================================================
29# Tweaking how LLVM is compiled
30# =============================================================================
31[llvm]
32
1b1a35ee
XL
33# Whether to use Rust CI built LLVM instead of locally building it.
34#
35# Unless you're developing for a target where Rust CI doesn't build a compiler
36# toolchain or changing LLVM locally, you probably want to set this to true.
37#
5869c6ff
XL
38# This is false by default so that distributions don't unexpectedly download
39# LLVM from the internet.
40#
41# All tier 1 targets are currently supported; set this to `"if-supported"` if
42# you are not sure whether you're on a tier 1 target.
1b1a35ee
XL
43#
44# We also currently only support this when building LLVM for the build triple.
45#
46# Note that many of the LLVM options are not currently supported for
47# downloading. Currently only the "assertions" option can be toggled.
48#download-ci-llvm = false
49
dfeec247
XL
50# Indicates whether LLVM rebuild should be skipped when running bootstrap. If
51# this is `false` then the compiler's LLVM will be rebuilt whenever the built
52# version doesn't have the correct hash. If it is `true` then LLVM will never
53# be rebuilt. The default value is `false`.
54#skip-rebuild = false
55
ea8adc8c
XL
56# Indicates whether the LLVM build is a Release or Debug build
57#optimize = true
58
b7449926
XL
59# Indicates whether LLVM should be built with ThinLTO. Note that this will
60# only succeed if you use clang, lld, llvm-ar, and llvm-ranlib in your C/C++
61# toolchain (see the `cc`, `cxx`, `linker`, `ar`, and `ranlib` options below).
62# More info at: https://clang.llvm.org/docs/ThinLTO.html#clang-bootstrap
63#thin-lto = false
64
ea8adc8c
XL
65# Indicates whether an LLVM Release build should include debug info
66#release-debuginfo = false
67
68# Indicates whether the LLVM assertions are enabled or not
69#assertions = false
70
71# Indicates whether ccache is used when building LLVM
72#ccache = false
73# or alternatively ...
74#ccache = "/path/to/ccache"
75
76# If an external LLVM root is specified, we automatically check the version by
77# default to make sure it's within the range that we're expecting, but setting
78# this flag will indicate that this version check should not be done.
abe05a73 79#version-check = true
ea8adc8c 80
1b1a35ee 81# Link libstdc++ statically into the rustc_llvm instead of relying on a
ea8adc8c
XL
82# dynamic version to be available.
83#static-libstdcpp = false
84
1b1a35ee
XL
85# Whether to use Ninja to build LLVM. This runs much faster than make.
86#ninja = true
ea8adc8c
XL
87
88# LLVM targets to build support for.
89# Note: this is NOT related to Rust compilation targets. However, as Rust is
90# dependent on LLVM for code generation, turning targets off here WILL lead to
91# the resulting rustc being unable to compile for the disabled architectures.
92# Also worth pointing out is that, in case support for new targets are added to
93# LLVM, enabling them here doesn't mean Rust is automatically gaining said
94# support. You'll need to write a target specification at least, and most
95# likely, teach rustc about the C ABI of the target. Get in touch with the
96# Rust team and file an issue if you need assistance in porting!
416331ca 97#targets = "AArch64;ARM;Hexagon;MSP430;Mips;NVPTX;PowerPC;RISCV;Sparc;SystemZ;WebAssembly;X86"
ea8adc8c
XL
98
99# LLVM experimental targets to build support for. These targets are specified in
100# the same format as above, but since these targets are experimental, they are
101# not built by default and the experimental Rust compilation targets that depend
416331ca 102# on them will not work unless the user opts in to building them.
f035d41b 103#experimental-targets = "AVR"
ea8adc8c
XL
104
105# Cap the number of parallel linker invocations when compiling LLVM.
106# This can be useful when building LLVM with debug info, which significantly
107# increases the size of binaries and consequently the memory required by
108# each linker process.
109# If absent or 0, linker invocations are treated like any other job and
110# controlled by rustbuild's -j parameter.
111#link-jobs = 0
112
113# When invoking `llvm-config` this configures whether the `--shared` argument is
114# passed to prefer linking to shared libraries.
115#link-shared = false
116
b7449926 117# When building llvm, this configures what is being appended to the version.
ba9703b0
XL
118# The default is "-rust-$version-$channel", except for dev channel where rustc
119# version number is omitted. To use LLVM version as is, provide an empty string.
120#version-suffix = "-rust-dev"
b7449926 121
94b46f34
XL
122# On MSVC you can compile LLVM with clang-cl, but the test suite doesn't pass
123# with clang-cl, so this is special in that it only compiles LLVM with clang-cl
124#clang-cl = '/path/to/clang-cl.exe'
125
9fa01778
XL
126# Pass extra compiler and linker flags to the LLVM CMake build.
127#cflags = "-fextra-flag"
128#cxxflags = "-fextra-flag"
129#ldflags = "-Wl,extra-flag"
130
0731742a
XL
131# Use libc++ when building LLVM instead of libstdc++. This is the default on
132# platforms already use libc++ as the default C++ library, but this option
133# allows you to use libc++ even on platforms when it's not. You need to ensure
134# that your host compiler ships with libc++.
135#use-libcxx = true
136
9fa01778
XL
137# The value specified here will be passed as `-DLLVM_USE_LINKER` to CMake.
138#use-linker = "lld"
139
532ac7d7
XL
140# Whether or not to specify `-DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=YES`
141#allow-old-toolchain = false
9fa01778 142
29967ef6
XL
143# Whether to include the Polly optimizer.
144#polly = false
145
ea8adc8c
XL
146# =============================================================================
147# General build configuration options
148# =============================================================================
149[build]
1b1a35ee
XL
150# The default stage to use for the `doc` subcommand
151#doc-stage = 0
152
153# The default stage to use for the `build` subcommand
154#build-stage = 1
155
156# The default stage to use for the `test` subcommand
157#test-stage = 1
158
159# The default stage to use for the `dist` subcommand
160#dist-stage = 2
161
162# The default stage to use for the `install` subcommand
163#install-stage = 2
164
165# The default stage to use for the `bench` subcommand
166#bench-stage = 2
ea8adc8c
XL
167
168# Build triple for the original snapshot compiler. This must be a compiler that
169# nightlies are already produced for. The current platform must be able to run
170# binaries of this build triple and the nightly will be used to bootstrap the
171# first compiler.
f035d41b
XL
172#
173# Defaults to host platform
174#build = "x86_64-unknown-linux-gnu"
ea8adc8c 175
1b1a35ee
XL
176# Which triples to produce a compiler toolchain for. Each of these triples will
177# be bootstrapped from the build triple themselves.
f035d41b
XL
178#
179# Defaults to just the build triple
180#host = ["x86_64-unknown-linux-gnu"]
ea8adc8c 181
1b1a35ee
XL
182# Which triples to build libraries (core/alloc/std/test/proc_macro) for. Each of
183# these triples will be bootstrapped from the build triple themselves.
f035d41b 184#
1b1a35ee
XL
185# Defaults to `host`. If you set this explicitly, you likely want to add all
186# host triples to this list as well in order for those host toolchains to be
187# able to compile programs for their native target.
f035d41b 188#target = ["x86_64-unknown-linux-gnu"]
ea8adc8c 189
f9f354fc
XL
190# Use this directory to store build artifacts.
191# You can use "$ROOT" to indicate the root of the git repository.
192#build-dir = "build"
193
ea8adc8c
XL
194# Instead of downloading the src/stage0.txt version of Cargo specified, use
195# this Cargo binary instead to build all Rust code
196#cargo = "/path/to/bin/cargo"
197
198# Instead of downloading the src/stage0.txt version of the compiler
199# specified, use this rustc binary instead as the stage0 snapshot compiler.
200#rustc = "/path/to/bin/rustc"
201
dfeec247
XL
202# Instead of download the src/stage0.txt version of rustfmt specified,
203# use this rustfmt binary instead as the stage0 snapshot rustfmt.
204#rustfmt = "/path/to/bin/rustfmt"
205
ea8adc8c
XL
206# Flag to specify whether any documentation is built. If false, rustdoc and
207# friends will still be compiled but they will not be used to generate any
208# documentation.
209#docs = true
210
6a06907d
XL
211# Flag to specify whether CSS, JavaScript, and HTML are minified when
212# docs are generated. JSON is always minified, because it's enormous,
213# and generated in already-minified form from the beginning.
214#docs-minification = true
215
ea8adc8c
XL
216# Indicate whether the compiler should be documented in addition to the standard
217# library and facade crates.
218#compiler-docs = false
219
e1599b0c 220# Indicate whether git submodules are managed and updated automatically.
ea8adc8c
XL
221#submodules = true
222
e1599b0c 223# Update git submodules only when the checked out commit in the submodules differs
0531ce1d
XL
224# from what is committed in the main rustc repo.
225#fast-submodules = true
226
ea8adc8c
XL
227# The path to (or name of) the GDB executable to use. This is only used for
228# executing the debuginfo test suite.
229#gdb = "gdb"
230
231# The node.js executable to use. Note that this is only used for the emscripten
232# target when running tests, otherwise this can be omitted.
233#nodejs = "node"
234
235# Python interpreter to use for various tasks throughout the build, notably
236# rustdoc tests, the lldb python interpreter, and some dist bits and pieces.
532ac7d7 237#
f035d41b 238# Defaults to the Python interpreter used to execute x.py
ba9703b0 239#python = "python"
ea8adc8c
XL
240
241# Force Cargo to check that Cargo.lock describes the precise dependency
242# set that all the Cargo.toml files create, instead of updating it.
243#locked-deps = false
244
245# Indicate whether the vendored sources are used for Rust dependencies or not
246#vendor = false
247
dfeec247 248# Typically the build system will build the Rust compiler twice. The second
ea8adc8c
XL
249# compiler, however, will simply use its own libraries to link against. If you
250# would rather to perform a full bootstrap, compiling the compiler three times,
251# then you can set this option to true. You shouldn't ever need to set this
252# option to true.
253#full-bootstrap = false
254
dfeec247 255# Enable a build of the extended Rust tool set which is not only the compiler
ea8adc8c
XL
256# but also tools such as Cargo. This will also produce "combined installers"
257# which are used to install Rust and Cargo together. This is disabled by
dfeec247
XL
258# default. The `tools` option (immediately below) specifies which tools should
259# be built if `extended = true`.
ea8adc8c
XL
260#extended = false
261
dfeec247
XL
262# Installs chosen set of extended tools if `extended = true`. By default builds all.
263# If chosen tool failed to build the installation fails. If `extended = false`, this
264# option is ignored.
0731742a 265#tools = ["cargo", "rls", "clippy", "rustfmt", "analysis", "src"]
2c00a5a8 266
ea8adc8c
XL
267# Verbosity level: 0 == not verbose, 1 == verbose, 2 == very verbose
268#verbose = 0
269
270# Build the sanitizer runtimes
271#sanitizers = false
272
f035d41b
XL
273# Build the profiler runtime (required when compiling with options that depend
274# on this runtime, such as `-C profile-generate` or `-Z instrument-coverage`).
ea8adc8c
XL
275#profiler = false
276
0bf4aa26
XL
277# Indicates whether the native libraries linked into Cargo will be statically
278# linked or not.
279#cargo-native-static = false
ea8adc8c
XL
280
281# Run the build with low priority, by setting the process group's "nice" value
282# to +10 on Unix platforms, and by using a "low priority" job object on Windows.
283#low-priority = false
284
285# Arguments passed to the `./configure` script, used during distcheck. You
286# probably won't fill this in but rather it's filled in by the `./configure`
287# script.
288#configure-args = []
289
290# Indicates that a local rebuild is occurring instead of a full bootstrap,
291# essentially skipping stage0 as the local compiler is recompiling itself again.
292#local-rebuild = false
293
0531ce1d
XL
294# Print out how long each rustbuild step took (mostly intended for CI and
295# tracking over time)
296#print-step-timings = false
297
6a06907d
XL
298# Print out resource usage data for each rustbuild step, as defined by the Unix
299# struct rusage. (Note that this setting is completely unstable: the data it
300# captures, what platforms it supports, the format of its associated output, and
301# this setting's very existence, are all subject to change.)
302#print-step-rusage = false
303
ea8adc8c
XL
304# =============================================================================
305# General install configuration options
306# =============================================================================
307[install]
308
309# Instead of installing to /usr/local, install to this path instead.
310#prefix = "/usr/local"
311
312# Where to install system configuration files
313# If this is a relative path, it will get installed in `prefix` above
314#sysconfdir = "/etc"
315
316# Where to install documentation in `prefix` above
317#docdir = "share/doc/rust"
318
319# Where to install binaries in `prefix` above
320#bindir = "bin"
321
322# Where to install libraries in `prefix` above
323#libdir = "lib"
324
325# Where to install man pages in `prefix` above
326#mandir = "share/man"
327
abe05a73
XL
328# Where to install data in `prefix` above (currently unused)
329#datadir = "share"
330
331# Where to install additional info in `prefix` above (currently unused)
332#infodir = "share/info"
333
334# Where to install local state (currently unused)
335# If this is a relative path, it will get installed in `prefix` above
336#localstatedir = "/var/lib"
337
ea8adc8c
XL
338# =============================================================================
339# Options for compiling Rust code itself
340# =============================================================================
341[rust]
342
0bf4aa26 343# Whether or not to optimize the compiler and standard library.
e74abb32
XL
344# WARNING: Building with optimize = false is NOT SUPPORTED. Due to bootstrapping,
345# building without optimizations takes much longer than optimizing. Further, some platforms
346# fail to build without this optimization (c.f. #65352).
ea8adc8c
XL
347#optimize = true
348
0bf4aa26
XL
349# Indicates that the build should be configured for debugging Rust. A
350# `debug`-enabled compiler and standard library will be somewhat
351# slower (due to e.g. checking of debug assertions) but should remain
352# usable.
353#
354# Note: If this value is set to `true`, it will affect a number of
355# configuration options below as well, if they have been left
356# unconfigured in this file.
357#
358# Note: changes to the `debug` setting do *not* affect `optimize`
359# above. In theory, a "maximally debuggable" environment would
360# set `optimize` to `false` above to assist the introspection
361# facilities of debuggers like lldb and gdb. To recreate such an
362# environment, explicitly set `optimize` to `false` and `debug`
363# to `true`. In practice, everyone leaves `optimize` set to
364# `true`, because an unoptimized rustc with debugging
365# enabled becomes *unusably slow* (e.g. rust-lang/rust#24840
366# reported a 25x slowdown) and bootstrapping the supposed
367# "maximally debuggable" environment (notably libstd) takes
368# hours to build.
369#
370#debug = false
371
6a06907d
XL
372# Whether to download the stage 1 and 2 compilers from CI.
373# This is mostly useful for tools; if you have changes to `compiler/` they will be ignored.
374#
375# FIXME: currently, this also uses the downloaded compiler for stage0, but that causes unnecessary rebuilds.
376#download-rustc = false
377
ea8adc8c
XL
378# Number of codegen units to use for each compiler invocation. A value of 0
379# means "the number of cores on this machine", and 1+ is passed through to the
380# compiler.
1b1a35ee
XL
381#
382# Uses the rustc defaults: https://doc.rust-lang.org/rustc/codegen-options/index.html#codegen-units
383#codegen-units = if incremental { 256 } else { 16 }
ea8adc8c 384
a1dfa0c6
XL
385# Sets the number of codegen units to build the standard library with,
386# regardless of what the codegen-unit setting for the rest of the compiler is.
387#codegen-units-std = 1
388
ea8adc8c 389# Whether or not debug assertions are enabled for the compiler and standard
f035d41b
XL
390# library. Debug assertions control the maximum log level used by rustc. When
391# enabled calls to `trace!` and `debug!` macros are preserved in the compiled
392# binary, otherwise they are omitted.
393#
394# Defaults to rust.debug value
29967ef6 395#debug-assertions = rust.debug (boolean)
f9f354fc
XL
396
397# Whether or not debug assertions are enabled for the standard library.
398# Overrides the `debug-assertions` option, if defined.
f035d41b
XL
399#
400# Defaults to rust.debug-assertions value
29967ef6 401#debug-assertions-std = rust.debug-assertions (boolean)
1b1a35ee
XL
402
403# Whether or not to leave debug! and trace! calls in the rust binary.
404# Overrides the `debug-assertions` option, if defined.
405#
406# Defaults to rust.debug-assertions value
29967ef6
XL
407#
408# If you see a message from `tracing` saying
409# `max_level_info` is enabled and means logging won't be shown,
410# set this value to `true`.
411#debug-logging = rust.debug-assertions (boolean)
ea8adc8c 412
dc9dc135
XL
413# Debuginfo level for most of Rust code, corresponds to the `-C debuginfo=N` option of `rustc`.
414# `0` - no debug info
f035d41b
XL
415# `1` - line tables only - sufficient to generate backtraces that include line
416# information and inlined functions, set breakpoints at source code
417# locations, and step through execution in a debugger.
dc9dc135 418# `2` - full debug info with variable and type information
74b04a01 419# Can be overridden for specific subsets of Rust code (rustc, std or tools).
dc9dc135
XL
420# Debuginfo for tests run with compiletest is not controlled by this option
421# and needs to be enabled separately with `debuginfo-level-tests`.
f035d41b 422#
3dfed10e
XL
423# Note that debuginfo-level = 2 generates several gigabytes of debuginfo
424# and will slow down the linking process significantly.
425#
426# Defaults to 1 if debug is true
f035d41b 427#debuginfo-level = 0
ea8adc8c 428
dc9dc135 429# Debuginfo level for the compiler.
f035d41b
XL
430#
431# Defaults to rust.debuginfo-level value
432#debuginfo-level-rustc = 0
ea8adc8c 433
dc9dc135 434# Debuginfo level for the standard library.
f035d41b
XL
435#
436# Defaults to rust.debuginfo-level value
437#debuginfo-level-std = 0
ea8adc8c 438
dc9dc135 439# Debuginfo level for the tools.
f035d41b
XL
440#
441# Defaults to rust.debuginfo-level value
442#debuginfo-level-tools = 0
dc9dc135
XL
443
444# Debuginfo level for the test suites run with compiletest.
445# FIXME(#61117): Some tests fail when this option is enabled.
446#debuginfo-level-tests = 0
83c7162d 447
fc512014
XL
448# Whether to run `dsymutil` on Apple platforms to gather debug info into .dSYM
449# bundles. `dsymutil` adds time to builds for no clear benefit, and also makes
450# it more difficult for debuggers to find debug info. The compiler currently
451# defaults to running `dsymutil` to preserve its historical default, but when
452# compiling the compiler itself, we skip it by default since we know it's safe
453# to do so in that case.
454#run-dsymutil = false
455
ea8adc8c
XL
456# Whether or not `panic!`s generate backtraces (RUST_BACKTRACE)
457#backtrace = true
458
94b46f34
XL
459# Whether to always use incremental compilation when building rustc
460#incremental = false
461
9fa01778 462# Build a multi-threaded rustc
1b1a35ee 463# FIXME(#75760): Some UI tests fail when this option is enabled.
9fa01778 464#parallel-compiler = false
0531ce1d 465
abe05a73
XL
466# The default linker that will be hard-coded into the generated compiler for
467# targets that don't specify linker explicitly in their target specifications.
468# Note that this is not the linker used to link said compiler.
ea8adc8c
XL
469#default-linker = "cc"
470
ea8adc8c
XL
471# The "channel" for the Rust build to produce. The stable/beta channels only
472# allow using stable features, whereas the nightly and dev channels allow using
473# nightly features
474#channel = "dev"
475
fc512014
XL
476# A descriptive string to be appended to `rustc --version` output, which is
477# also used in places like debuginfo `DW_AT_producer`. This may be useful for
478# supplementary build information, like distro-specific package versions.
479#description = ""
480
f035d41b 481# The root location of the musl installation directory.
e74abb32
XL
482#musl-root = "..."
483
ea8adc8c
XL
484# By default the `rustc` executable is built with `-Wl,-rpath` flags on Unix
485# platforms to ensure that the compiler is usable by default from the build
486# directory (as it links to a number of dynamic libraries). This may not be
487# desired in distributions, for example.
488#rpath = true
489
1b1a35ee 490# Prints each test name as it is executed, to help debug issues in the test harness itself.
94b46f34 491#verbose-tests = false
ea8adc8c 492
dc9dc135 493# Flag indicating whether tests are compiled with optimizations (the -O flag).
ea8adc8c 494#optimize-tests = true
ea8adc8c
XL
495
496# Flag indicating whether codegen tests will be run or not. If you get an error
497# saying that the FileCheck executable is missing, you may want to disable this.
0bf4aa26 498# Also see the target's llvm-filecheck option.
ea8adc8c
XL
499#codegen-tests = true
500
501# Flag indicating whether git info will be retrieved from .git automatically.
502# Having the git information can cause a lot of rebuilds during development.
2c00a5a8 503# Note: If this attribute is not explicitly set (e.g. if left commented out) it
ea8adc8c
XL
504# will default to true if channel = "dev", but will default to false otherwise.
505#ignore-git = true
506
507# When creating source tarballs whether or not to create a source tarball.
508#dist-src = false
509
ff7c6d11
XL
510# After building or testing extended tools (e.g. clippy and rustfmt), append the
511# result (broken, compiling, testing) into this JSON file.
512#save-toolstates = "/path/to/toolstates.json"
513
2c00a5a8
XL
514# This is an array of the codegen backends that will be compiled for the rustc
515# that's being compiled. The default is to only build the LLVM codegen backend,
29967ef6 516# and currently the only standard options supported are `"llvm"` and `"cranelift"`.
2c00a5a8
XL
517#codegen-backends = ["llvm"]
518
0531ce1d
XL
519# Indicates whether LLD will be compiled and made available in the sysroot for
520# rustc to execute.
521#lld = false
522
74b04a01
XL
523# Indicates whether LLD will be used to link Rust crates during bootstrap on
524# supported platforms. The LLD from the bootstrap distribution will be used
525# and not the LLD compiled during the bootstrap.
526#
1b1a35ee 527# LLD will not be used if we're cross linking.
74b04a01 528#
3dfed10e 529# Explicitly setting the linker for a target will override this option when targeting MSVC.
74b04a01
XL
530#use-lld = false
531
8faf50e0
XL
532# Indicates whether some LLVM tools, like llvm-objdump, will be made available in the
533# sysroot.
534#llvm-tools = false
535
83c7162d
XL
536# Whether to deny warnings in crates
537#deny-warnings = true
538
539# Print backtrace on internal compiler errors during bootstrap
540#backtrace-on-ice = false
541
8faf50e0
XL
542# Whether to verify generated LLVM IR
543#verify-llvm-ir = false
544
dfeec247
XL
545# Compile the compiler with a non-default ThinLTO import limit. This import
546# limit controls the maximum size of functions imported by ThinLTO. Decreasing
547# will make code compile faster at the expense of lower runtime performance.
548# If `incremental` is set to true above, the import limit will default to 10
549# instead of LLVM's default of 100.
550#thin-lto-import-instr-limit = 100
551
3dfed10e 552# Map debuginfo paths to `/rust/$sha/...`, generally only set for releases
b7449926
XL
553#remap-debuginfo = false
554
a1dfa0c6
XL
555# Link the compiler against `jemalloc`, where on Linux and OSX it should
556# override the default allocator for rustc and LLVM.
557#jemalloc = false
558
559# Run tests in various test suites with the "nll compare mode" in addition to
560# running the tests in normal mode. Largely only used on CI and during local
561# development of NLL
562#test-compare-mode = false
563
532ac7d7 564# Use LLVM libunwind as the implementation for Rust's unwinder.
29967ef6
XL
565# Accepted values are 'in-tree' (formerly true), 'system' or 'no' (formerly false).
566#llvm-libunwind = 'no'
532ac7d7 567
74b04a01
XL
568# Enable Windows Control Flow Guard checks in the standard library.
569# This only applies from stage 1 onwards, and only for Windows targets.
570#control-flow-guard = false
571
3dfed10e
XL
572# Enable symbol-mangling-version v0. This can be helpful when profiling rustc,
573# as generics will be preserved in symbols (rather than erased into opaque T).
574#new-symbol-mangling = false
575
ea8adc8c
XL
576# =============================================================================
577# Options for specific targets
578#
579# Each of the following options is scoped to the specific target triple in
580# question and is used for determining how to compile each target.
581# =============================================================================
582[target.x86_64-unknown-linux-gnu]
583
abe05a73 584# C compiler to be used to compiler C code. Note that the
ea8adc8c
XL
585# default value is platform specific, and if not specified it may also depend on
586# what platform is crossing to what platform.
587#cc = "cc"
588
589# C++ compiler to be used to compiler C++ code (e.g. LLVM and our LLVM shims).
590# This is only used for host targets.
591#cxx = "c++"
592
abe05a73
XL
593# Archiver to be used to assemble static libraries compiled from C/C++ code.
594# Note: an absolute path should be used, otherwise LLVM build will break.
595#ar = "ar"
596
b7449926
XL
597# Ranlib to be used to assemble static libraries compiled from C/C++ code.
598# Note: an absolute path should be used, otherwise LLVM build will break.
599#ranlib = "ranlib"
600
abe05a73
XL
601# Linker to be used to link Rust code. Note that the
602# default value is platform specific, and if not specified it may also depend on
603# what platform is crossing to what platform.
3dfed10e 604# Setting this will override the `use-lld` option for Rust code when targeting MSVC.
abe05a73
XL
605#linker = "cc"
606
ea8adc8c 607# Path to the `llvm-config` binary of the installation of a custom LLVM to link
2c00a5a8 608# against. Note that if this is specified we don't compile LLVM at all for this
ea8adc8c
XL
609# target.
610#llvm-config = "../path/to/llvm/root/bin/llvm-config"
611
0bf4aa26
XL
612# Normally the build system can find LLVM's FileCheck utility, but if
613# not, you can specify an explicit file name for it.
614#llvm-filecheck = "/path/to/FileCheck"
615
ea8adc8c
XL
616# If this target is for Android, this option will be required to specify where
617# the NDK for the target lives. This is used to find the C compiler to link and
618# build native code.
619#android-ndk = "/path/to/ndk"
620
29967ef6
XL
621# Build the sanitizer runtimes for this target.
622# This option will override the same option under [build] section.
623#sanitizers = false
624
625# Build the profiler runtime for this target(required when compiling with options that depend
626# on this runtime, such as `-C profile-generate` or `-Z instrument-coverage`).
627# This option will override the same option under [build] section.
628#profiler = false
629
ea8adc8c
XL
630# Force static or dynamic linkage of the standard library for this target. If
631# this target is a host for rustc, this will also affect the linkage of the
632# compiler itself. This is useful for building rustc on targets that normally
633# only use static libraries. If unset, the target's default linkage is used.
634#crt-static = false
635
f035d41b 636# The root location of the musl installation directory. The library directory
ea8adc8c 637# will also need to contain libunwind.a for an unwinding implementation. Note
f035d41b 638# that this option only makes sense for musl targets that produce statically
ea8adc8c
XL
639# linked binaries
640#musl-root = "..."
641
f035d41b
XL
642# The full path to the musl libdir.
643#musl-libdir = musl-root/lib
644
6a06907d
XL
645# The root location of the `wasm32-wasi` sysroot. Only used for the
646# `wasm32-wasi` target. If you are building wasm32-wasi target, make sure to
647# create a `[target.wasm32-wasi]` section and move this field there.
532ac7d7
XL
648#wasi-root = "..."
649
ea8adc8c
XL
650# Used in testing for configuring where the QEMU images are located, you
651# probably don't want to use this.
652#qemu-rootfs = "..."
653
654# =============================================================================
655# Distribution options
656#
657# These options are related to distribution, mostly for the Rust project itself.
658# You probably won't need to concern yourself with any of these options
659# =============================================================================
660[dist]
661
662# This is the folder of artifacts that the build system will sign. All files in
663# this directory will be signed with the default gpg key using the system `gpg`
664# binary. The `asc` and `sha256` files will all be output into the standard dist
665# output folder (currently `build/dist`)
666#
667# This folder should be populated ahead of time before the build system is
668# invoked.
669#sign-folder = "path/to/folder/to/sign"
670
671# This is a file which contains the password of the default gpg key. This will
672# be passed to `gpg` down the road when signing all files in `sign-folder`
673# above. This should be stored in plaintext.
674#gpg-password-file = "path/to/gpg/password"
675
676# The remote address that all artifacts will eventually be uploaded to. The
677# build system generates manifests which will point to these urls, and for the
678# manifests to be correct they'll have to have the right URLs encoded.
679#
680# Note that this address should not contain a trailing slash as file names will
681# be appended to it.
682#upload-addr = "https://example.com/folder"
683
684# Whether to build a plain source tarball to upload
685# We disable that on Windows not to override the one already uploaded on S3
686# as the one built on Windows will contain backslashes in paths causing problems
687# on linux
688#src-tarball = true
0bf4aa26
XL
689#
690
691# Whether to allow failures when building tools
692#missing-tools = false
5869c6ff
XL
693
694# List of compression formats to use when generating dist tarballs. The list of
695# formats is provided to rust-installer, which must support all of them.
696#compression-formats = ["gz", "xz"]