diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-05-05 22:15:42 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-05-24 11:49:30 +0300 |
| commit | 28405cabd50181afa6eccfd7f2ee8eb363d35594 (patch) | |
| tree | 16d1e6c2276d4749946e6c83cca74ed5ac0a31ee /config.toml.example | |
| parent | 46805805abe58c287fa16963f897fd09d5d97467 (diff) | |
| download | rust-28405cabd50181afa6eccfd7f2ee8eb363d35594.tar.gz rust-28405cabd50181afa6eccfd7f2ee8eb363d35594.zip | |
rustbuild: Simplify debuginfo configuration
Diffstat (limited to 'config.toml.example')
| -rw-r--r-- | config.toml.example | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/config.toml.example b/config.toml.example index 556625b531d..361a1b00ae2 100644 --- a/config.toml.example +++ b/config.toml.example @@ -301,20 +301,24 @@ # library. #debug-assertions = false -# Whether or not debuginfo is emitted -#debuginfo = false +# Debuginfo level for Rust code, corresponds to the `-C debuginfo=N` option of `rustc`. +# `0` - no debug info +# `1` - line tables only +# `2` - full debug info with variable and type information +# Can be overriden for specific subsets of Rust code (rustc, std, tools or tests). +#debuginfo-level = if debug { 2 } else { 0 } -# Whether or not line number debug information is emitted -#debuginfo-lines = false +# Debuginfo level for the compiler. +#debuginfo-level-rustc = debuginfo-level -# Whether or not to only build debuginfo for the standard library if enabled. -# If enabled, this will not compile the compiler with debuginfo, just the -# standard library. -#debuginfo-only-std = false +# Debuginfo level for the standard library. +#debuginfo-level-std = debuginfo-level -# Enable debuginfo for the extended tools: cargo, rls, rustfmt -# Adding debuginfo makes them several times larger. -#debuginfo-tools = false +# Debuginfo level for the tools. +#debuginfo-level-tools = debuginfo-level + +# Debuginfo level for the test suites run with compiletest. +#debuginfo-level-tests = debuginfo-level # Whether or not `panic!`s generate backtraces (RUST_BACKTRACE) #backtrace = true @@ -345,10 +349,8 @@ # harness are debuggable just from logfiles. #verbose-tests = false -# Flag indicating whether tests are compiled with optimizations (the -O flag) or -# with debuginfo (the -g flag) +# Flag indicating whether tests are compiled with optimizations (the -O flag) #optimize-tests = true -#debuginfo-tests = true # Flag indicating whether codegen tests will be run or not. If you get an error # saying that the FileCheck executable is missing, you may want to disable this. |
