rust/compiler
Dylan DPC 596235281c
Rollup merge of #77765 - amshafer:master, r=petrochenkov
Add LLVM flags to limit DWARF version to 2 on BSD

This has been a thorn in my side for a while, I can finally generate flamegraphs of rust programs on bsd again. This fixes dtrace profiling on freebsd, I think it might help with lldb as well but I can't test that because my current rust-lldb setup is messed up.

I'm limiting the dwarf version to 2 on all bsd's (netbsd/openbsd/freebsd) since it looks like this applies to all of them, but I have only tested on freebsd.

Let me know if there's anything I can improve!

---
Currently on FreeBSD dtrace profiling does not work and shows jumbled/incorrect
symbols in the backtraces. FreeBSD does not support the latest versions of DWARF
in dtrace (and lldb?) yet, and needs to be limited to DWARF2 in the same way as macos.

This adds an is_like_bsd flag since it was missing. NetBSD/OpenBSD/FreeBSD all
match this.

This effectively copies #11864 but targets FreeBSD instead of macos.
2020-10-14 02:30:34 +02:00
..
rustc just max_level_info 2020-09-11 09:37:51 -07:00
rustc_apfloat Backport another LLVM commit to rustc_apfloat 2020-10-04 02:02:25 +02:00
rustc_arena Remove unused #[allow(...)] statements from compiler/ 2020-09-26 01:25:55 +02:00
rustc_ast address review comments 2020-10-09 22:00:48 -07:00
rustc_ast_lowering Separate bounds and predicates for associated/opaque types 2020-10-06 11:19:29 +01:00
rustc_ast_passes use matches!() macro for simple if let conditions 2020-09-18 20:28:35 +02:00
rustc_ast_pretty Rollup merge of #77886 - LingMan:ast_pretty_bool_matches, r=petrochenkov 2020-10-14 06:02:35 +09:00
rustc_attr Implement the instruction_set attribute 2020-10-08 23:32:20 +01:00
rustc_builtin_macros Rollup merge of #77831 - LingMan:use_std, r=jonas-schievink 2020-10-13 04:08:03 +09:00
rustc_codegen_llvm Rollup merge of #77765 - amshafer:master, r=petrochenkov 2020-10-14 02:30:34 +02:00
rustc_codegen_ssa Replace absolute paths with relative ones 2020-10-13 14:16:45 +02:00
rustc_data_structures Replace absolute paths with relative ones 2020-10-13 14:16:45 +02:00
rustc_driver Auto merge of #77649 - dash2507:replace_run_compiler, r=matthewjasper 2020-10-11 01:26:06 +00:00
rustc_error_codes Fix typo in error code description 2020-10-10 18:02:53 +09:00
rustc_errors /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_expand Detect blocks that could be struct expr bodies 2020-10-07 13:40:52 -07:00
rustc_feature Implement the instruction_set attribute 2020-10-08 23:32:20 +01:00
rustc_fs_util mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
rustc_graphviz /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_hir Replace absolute paths with relative ones 2020-10-13 14:16:45 +02:00
rustc_hir_pretty mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
rustc_incremental /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_index cache types during normalization 2020-09-19 17:27:13 +02:00
rustc_infer Replace absolute paths with relative ones 2020-10-13 14:16:45 +02:00
rustc_interface Auto merge of #76830 - Artoria2e5:tune, r=nagisa 2020-10-13 02:49:00 +00:00
rustc_lexer Noticed a potential bug in eat_while(): it doesn't account for number of UTF8 bytes. 2020-10-09 11:12:54 +02:00
rustc_lint Auto merge of #77119 - GuillaumeGomez:unclosed-html-tag-lint, r=jyn514 2020-10-07 09:56:51 +00:00
rustc_llvm Auto merge of #76859 - Aaron1011:fix/llvm-cgu-reuse, r=davidtwco,nikic 2020-10-11 20:50:02 +00:00
rustc_macros Remove unused #[allow(...)] statements from compiler/ 2020-09-26 01:25:55 +02:00
rustc_metadata Take functions by value 2020-10-10 16:19:53 +02:00
rustc_middle Auto merge of #77917 - JohnTitor:rollup-e47h2qt, r=JohnTitor 2020-10-13 22:13:09 +00:00
rustc_mir Rollup merge of #77892 - est31:remove_redundant_absolute_paths, r=lcnr 2020-10-14 06:02:36 +09:00
rustc_mir_build Auto merge of #77917 - JohnTitor:rollup-e47h2qt, r=JohnTitor 2020-10-13 22:13:09 +00:00
rustc_parse rustc_parse: More precise spans for tuple.0.0 2020-10-11 02:33:49 +03:00
rustc_parse_format /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_passes Rollup merge of #76329 - GuillaumeGomez:doc-alias-crate-level, r=matthewjasper 2020-10-05 02:29:27 +02:00
rustc_plugin_impl /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_privacy Separate bounds and predicates for associated/opaque types 2020-10-06 11:19:29 +01:00
rustc_query_system update the version of itertools and parking_lot 2020-09-12 08:26:53 +02:00
rustc_resolve Rollup merge of #77825 - ethanboxx:min_const_generics_diagnostic, r=lcnr 2020-10-14 06:02:29 +09:00
rustc_save_analysis /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_serialize Replace absolute paths with relative ones 2020-10-13 14:16:45 +02:00
rustc_session Auto merge of #76830 - Artoria2e5:tune, r=nagisa 2020-10-13 02:49:00 +00:00
rustc_span Auto merge of #77687 - est31:hash_shorter_path, r=davidtwco 2020-10-09 08:09:32 +00:00
rustc_symbol_mangling Replace absolute paths with relative ones 2020-10-13 14:16:45 +02:00
rustc_target Rollup merge of #77765 - amshafer:master, r=petrochenkov 2020-10-14 02:30:34 +02:00
rustc_trait_selection Replace absolute paths with relative ones 2020-10-13 14:16:45 +02:00
rustc_traits Update chalk to 0.32.0 2020-10-08 13:17:01 +02:00
rustc_ty Move item_bounds to typeck::collect 2020-10-06 11:18:45 +01:00
rustc_typeck explanatory comments and fix guard binding stack 2020-10-14 00:51:00 +08:00