summaryrefslogtreecommitdiffstats
path: root/tests/run-make-fulldeps/issue-97463-abi-param-passing/Makefile
blob: db1b53e152eae8194ab70e7befe5df8d01a45a25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-include ../tools.mk

# ignore-msvc

# The issue exercised by this test, rust-lang/rust#97463, explicitly needs `-O`
# flags (like `-O3`) to reproduce. Thus, we call $(CC) instead of nicer
# alternatives provided by tools.mk like using `COMPILE_OBJ` or using a
# `NATIVE_STATICLIB` dependency.

all:
	$(CC) -c -O3 -o $(TMPDIR)/bad.o bad.c
	$(AR) rcs $(TMPDIR)/libbad.a $(TMPDIR)/bad.o
	$(RUSTC) param_passing.rs -L$(TMPDIR) -lbad -C opt-level=3
	$(call RUN,param_passing)