]> git.lizzy.rs Git - rust.git/blob - src/test/run-make/llvm-pass/Makefile
Merge remote-tracking branch 'miri/upstream' into miri
[rust.git] / src / test / run-make / llvm-pass / Makefile
1 -include ../tools.mk
2
3 ifeq ($(findstring stage1,$(RUST_BUILD_STAGE)),stage1)
4 # ignore stage1
5 all:
6
7 else
8 # Windows doesn't correctly handle include statements with escaping paths,
9 # so this test will not get run on Windows.
10 ifdef IS_WINDOWS
11 all:
12 else
13 all: $(call NATIVE_STATICLIB,llvm-function-pass) $(call NATIVE_STATICLIB,llvm-module-pass)
14         $(RUSTC) plugin.rs -C prefer-dynamic
15         $(RUSTC) main.rs
16
17 $(TMPDIR)/libllvm-function-pass.o:
18         $(CXX) $(CFLAGS) $(LLVM_CXXFLAGS) -c llvm-function-pass.so.cc -o $(TMPDIR)/libllvm-function-pass.o
19
20 $(TMPDIR)/libllvm-module-pass.o:
21         $(CXX) $(CFLAGS) $(LLVM_CXXFLAGS) -c llvm-module-pass.so.cc -o $(TMPDIR)/libllvm-module-pass.o
22 endif
23
24 endif