mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
cc08749df2
When `no_builtins` is applied at the crate level, we should add the `no-builtins` attribute to each function to ensure it takes effect in LTO.
10 lines
262 B
Makefile
10 lines
262 B
Makefile
include ../tools.mk
|
|
|
|
# We want to check if `no-builtins` is also added to the function declarations in the used crate.
|
|
|
|
all:
|
|
$(RUSTC) no_builtins.rs --emit=link
|
|
$(RUSTC) main.rs --emit=llvm-ir
|
|
|
|
cat "$(TMPDIR)"/main.ll | "$(LLVM_FILECHECK)" filecheck.main.txt
|