File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/test/run-make-fulldeps/redundant-libs Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 11-include ../tools.mk
22
3+ ifdef IS_WINDOWS
4+ all :
5+ else
6+
37# rustc will remove one of the two redundant references to foo below. Depending
48# on which one gets removed, we'll get a linker error on SOME platforms (like
59# Linux). On these platforms, when a library is referenced, the linker will
1014# So in this example, we need to ensure that rustc keeps the _later_ reference
1115# to foo, and not the former one.
1216RUSTC_FLAGS = \
13- -C prefer-dynamic \
1417 -l static=bar \
1518 -l foo \
1619 -l static=baz \
@@ -20,3 +23,5 @@ RUSTC_FLAGS = \
2023all : $(call DYLIB,foo) $(call STATICLIB,bar) $(call STATICLIB,baz)
2124 $(RUSTC ) $(RUSTC_FLAGS ) main.rs
2225 $(call RUN,main)
26+
27+ endif
You can’t perform that action at this time.
0 commit comments