We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bb47f4 commit a5892d4Copy full SHA for a5892d4
compiler/rustc_codegen_llvm/src/back/write.rs
@@ -220,6 +220,8 @@ pub fn target_machine_factory(
220
let use_init_array =
221
!sess.opts.unstable_opts.use_ctors_section.unwrap_or(sess.target.use_ctors_section);
222
223
+ // this annotes in the debug file that code is hotpatchable. In addtion without it -functionpadmin will be ignored.
224
+ // See: https://github.com/llvm/llvm-project/blob/d703b922961e0d02a5effdd4bfbb23ad50a3cc9f/lld/COFF/Writer.cpp#L1298
225
let use_hotpatch = sess.opts.unstable_opts.ms_hotpatch && sess.target.is_x86();
226
227
let path_mapping = sess.source_map().path_mapping().clone();
0 commit comments