summaryrefslogtreecommitdiffstats
path: root/tests/run-make-fulldeps/lto-readonly-lib/Makefile
blob: a20ecea88ea1cd1c0957737990a2bfe33649b73b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
include ../tools.mk

all:
	$(RUSTC) lib.rs

	# the compiler needs to copy and modify the rlib file when performing
	# LTO, so we should ensure that it can cope with the original rlib
	# being read-only.
	chmod 444 $(TMPDIR)/*.rlib

	$(RUSTC) main.rs -C lto
	$(call RUN,main)