]> git.proxmox.com Git - rustc.git/blame - src/test/run-make-fulldeps/no-builtins-lto/Makefile
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / run-make-fulldeps / no-builtins-lto / Makefile
CommitLineData
9e0c209e
SL
1-include ../tools.mk
2
3all:
4 # Compile a `#![no_builtins]` rlib crate
5 $(RUSTC) no_builtins.rs
6 # Build an executable that depends on that crate using LTO. The no_builtins crate doesn't
7 # participate in LTO, so its rlib must be explicitly linked into the final binary. Verify this by
8 # grepping the linker arguments.
5099ac24 9 $(RUSTC) main.rs -C lto --print link-args | $(CGREP) 'libno_builtins.rlib'