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