diff options
| author | bors <bors@rust-lang.org> | 2021-06-18 04:39:01 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-06-18 04:39:01 +0000 |
| commit | ed3378733574e1acab67f6cd4e9f251be1a31ec4 (patch) | |
| tree | 6293815a5b6f9d569c331c68a4b6e8273c8a25ad /compiler/rustc_session | |
| parent | 1a462831ad4c6966f3baabe5cbf21cb9f330ffc4 (diff) | |
| parent | 872839eb494e2ed6b2e7c9ba28ec3450c399d935 (diff) | |
| download | rust-ed3378733574e1acab67f6cd4e9f251be1a31ec4.tar.gz rust-ed3378733574e1acab67f6cd4e9f251be1a31ec4.zip | |
Auto merge of #85284 - eggyal:custom-profiler-runtime, r=jackh726
Provide option for specifying the profiler runtime Currently, if `-Zinstrument-coverage` is enabled, the target is linked against the `library/profiler_builtins` crate (which pulls in LLVM's compiler-rt runtime). This option enables backends to specify an alternative runtime crate for handling injected instrumentation calls.
Diffstat (limited to 'compiler/rustc_session')
| -rw-r--r-- | compiler/rustc_session/src/options.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs index 1946bfd78cc..ebf59bb4cc6 100644 --- a/compiler/rustc_session/src/options.rs +++ b/compiler/rustc_session/src/options.rs @@ -1160,8 +1160,6 @@ options! { "compile without linking"), no_parallel_llvm: bool = (false, parse_no_flag, [UNTRACKED], "run LLVM in non-parallel mode (while keeping codegen-units and ThinLTO)"), - no_profiler_runtime: bool = (false, parse_no_flag, [TRACKED], - "prevent automatic injection of the profiler_builtins crate"), normalize_docs: bool = (false, parse_bool, [TRACKED], "normalize associated items in rustdoc when generating documentation"), osx_rpath_install_name: bool = (false, parse_bool, [TRACKED], @@ -1205,6 +1203,8 @@ options! { profile_emit: Option<PathBuf> = (None, parse_opt_pathbuf, [TRACKED], "file path to emit profiling data at runtime when using 'profile' \ (default based on relative source path)"), + profiler_runtime: Option<String> = (Some(String::from("profiler_builtins")), parse_opt_string, [TRACKED], + "name of the profiler runtime crate to automatically inject, or None to disable"), query_dep_graph: bool = (false, parse_bool, [UNTRACKED], "enable queries of the dependency graph for regression testing (default: no)"), query_stats: bool = (false, parse_bool, [UNTRACKED], |
