rust/compiler/rustc_session/src
Matthias Krüger 4b319bcada
Rollup merge of #136746 - wesleywiser:err_dwarf1, r=Urgau
Emit an error if `-Zdwarf-version=1` is requested

DWARF 1 is very different than DWARF 2+[^1] and LLVM does not really seem to support DWARF 1 as Clang does not offer a `-gdwarf-1` flag[^2] and `llc` will just generate DWARF 2 with the version set to 1[^3].

Since this isn't actually supported (and it's not clear it would be useful anyway), report that DWARF 1 is not supported if it is requested.

Also add a help message to the error saying which versions are supported.

cc #103057

[^1]: https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html#index-gdwarf
[^2]: https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-gdwarf
[^3]: https://godbolt.org/z/s85d87n3a
2025-02-09 19:44:53 +01:00
..
config Rustfmt 2025-02-08 22:12:13 +00:00
code_stats.rs Remove print_vtable_sizes 2025-01-30 15:30:04 +00:00
config.rs Auto merge of #133138 - azhogin:azhogin/target-modifiers, r=davidtwco,saethlin 2025-02-03 07:16:57 +00:00
cstore.rs Update comments 2024-12-19 15:30:32 +00:00
errors.rs Emit an error if -Zdwarf-version=1 is requested 2025-02-09 10:05:13 -06:00
filesearch.rs bumpt compiler and tools to windows 0.59 2025-01-21 16:48:44 +03:00
lib.rs Rollup merge of #136152 - Urgau:stabilize-map_many_mut, r=joshtriplett 2025-02-06 21:56:26 +01:00
options.rs Contracts core intrinsics. 2025-02-03 12:53:57 -08:00
output.rs Reduce the amount of explicit FatalError.raise() 2024-12-20 14:09:25 +00:00
parse.rs Auto merge of #136471 - safinaskar:parallel, r=SparrowLii 2025-02-06 10:50:05 +00:00
search_paths.rs Rustfmt 2025-02-08 22:12:13 +00:00
session.rs Emit an error if -Zdwarf-version=1 is requested 2025-02-09 10:05:13 -06:00
utils.rs remove a couple of redundant String to String conversion 2024-10-12 22:07:46 +02:00