about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@fb.com>2022-06-20 16:26:51 -0700
committerPatrick Walton <pcwalton@fb.com>2022-07-08 11:31:08 -0700
commit1e0ad0c1d4fdca7a37221e05fd5e39739d9084f5 (patch)
tree14b27ca538f026f36bd50438734954f68071b2c2 /compiler/rustc_interface/src
parent45263fc66d253f762b3880764ae48611a25bf887 (diff)
downloadrust-1e0ad0c1d4fdca7a37221e05fd5e39739d9084f5.tar.gz
rust-1e0ad0c1d4fdca7a37221e05fd5e39739d9084f5.zip
Implement support for DWARF version 5.
DWARF version 5 brings a number of improvements over version 4. Quoting from
the announcement [1]:

> Version 5 incorporates improvements in many areas: better data compression,
> separation of debugging data from executable files, improved description of
> macros and source files, faster searching for symbols, improved debugging
> optimized code, as well as numerous improvements in functionality and
> performance.

On platforms where DWARF version 5 is supported (Linux, primarily), this commit
adds support for it behind a new `-Z dwarf-version=5` flag.

[1]: https://dwarfstd.org/Public_Review.php
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/tests.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs
index 1bb79a0264d..55827ff583a 100644
--- a/compiler/rustc_interface/src/tests.rs
+++ b/compiler/rustc_interface/src/tests.rs
@@ -733,6 +733,7 @@ fn test_debugging_options_tracking_hash() {
     tracked!(dep_info_omit_d_target, true);
     tracked!(drop_tracking, true);
     tracked!(dual_proc_macros, true);
+    tracked!(dwarf_version, Some(5));
     tracked!(fewer_names, Some(true));
     tracked!(force_unstable_if_unmarked, true);
     tracked!(fuel, Some(("abc".to_string(), 99)));