fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1# ignore-cross-compile 2include ../tools.mk 3 4# ignore-msvc 5 6# The issue exercised by this test, rust-lang/rust#97463, explicitly needs `-O` 7# flags (like `-O3`) to reproduce. Thus, we call $(CC) instead of nicer 8# alternatives provided by tools.mk like using `COMPILE_OBJ` or using a 9# `NATIVE_STATICLIB` dependency. 10 11all: 12 $(CC) -c -O3 -o $(TMPDIR)/bad.o bad.c 13 $(AR) rcs $(TMPDIR)/libbad.a $(TMPDIR)/bad.o 14 $(RUSTC) param_passing.rs -L$(TMPDIR) -lbad -C opt-level=3 15 $(call RUN,param_passing)