Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 995 Bytes

File metadata and controls

28 lines (22 loc) · 995 Bytes

Minilink

ci_status license crates_io docs_rs

Template and register linker scripts with Rust's conditional compilation flags in hand.

SECTIONS {
 .text : {
   {% if contains(cfg.feature, "some_feature") %}
   __feature = .;
   {% endif %}
 }
}
minilink::include_template("./ld/link.in.ld", "link.ld");

Further reading