]> git.lizzy.rs Git - rust.git/blob - src/test/run-make-fulldeps/lto-readonly-lib/Makefile
Merge commit '9a0c32934ebe376128230aa8da3275697b2053e7' into sync_cg_clif-2021-03-05
[rust.git] / src / test / run-make-fulldeps / lto-readonly-lib / Makefile
1 -include ../tools.mk
2
3 all:
4         $(RUSTC) lib.rs
5
6         # the compiler needs to copy and modify the rlib file when performing
7         # LTO, so we should ensure that it can cope with the original rlib
8         # being read-only.
9         chmod 444 $(TMPDIR)/*.rlib
10
11         $(RUSTC) main.rs -C lto
12         $(call RUN,main)