aa874c5513
This reverts commit 8c2b57721728233e074db69d93517614de338055, reversing changes made to 9cf18e98f82d85fa41141391d54485b8747da46f.
10 lines
393 B
Makefile
10 lines
393 B
Makefile
include ../tools.mk
|
|
|
|
all:
|
|
# Compile a `#![no_builtins]` rlib crate
|
|
$(RUSTC) no_builtins.rs
|
|
# Build an executable that depends on that crate using LTO. The no_builtins crate doesn't
|
|
# participate in LTO, so its rlib must be explicitly linked into the final binary. Verify this by
|
|
# grepping the linker arguments.
|
|
$(RUSTC) main.rs -C lto --print link-args | $(CGREP) 'libno_builtins.rlib'
|