]> git.proxmox.com Git - rustc.git/blame - src/test/run-make/llvm-pass/Makefile
New upstream version 1.25.0+dfsg1
[rustc.git] / src / test / run-make / llvm-pass / Makefile
CommitLineData
7453a54e
SL
1-include ../tools.mk
2
2c00a5a8
XL
3ifeq ($(UNAME),Darwin)
4PLUGIN_FLAGS := -C link-args=-Wl,-undefined,dynamic_lookup
5endif
6
3b2f2976
XL
7ifeq ($(findstring stage1,$(RUST_BUILD_STAGE)),stage1)
8# ignore stage1
9all:
10
11else
7453a54e
SL
12# Windows doesn't correctly handle include statements with escaping paths,
13# so this test will not get run on Windows.
14ifdef IS_WINDOWS
15all:
16else
17all: $(call NATIVE_STATICLIB,llvm-function-pass) $(call NATIVE_STATICLIB,llvm-module-pass)
2c00a5a8 18 $(RUSTC) plugin.rs -C prefer-dynamic $(PLUGIN_FLAGS)
7453a54e
SL
19 $(RUSTC) main.rs
20
21$(TMPDIR)/libllvm-function-pass.o:
22 $(CXX) $(CFLAGS) $(LLVM_CXXFLAGS) -c llvm-function-pass.so.cc -o $(TMPDIR)/libllvm-function-pass.o
23
24$(TMPDIR)/libllvm-module-pass.o:
25 $(CXX) $(CFLAGS) $(LLVM_CXXFLAGS) -c llvm-module-pass.so.cc -o $(TMPDIR)/libllvm-module-pass.o
26endif
3b2f2976
XL
27
28endif