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 1
1
-include ../tools.mk
2
2
3
+ ifdef IS_WINDOWS
4
+ all :
5
+ else
6
+
3
7
# rustc will remove one of the two redundant references to foo below. Depending
4
8
# on which one gets removed, we'll get a linker error on SOME platforms (like
5
9
# Linux). On these platforms, when a library is referenced, the linker will
10
14
# So in this example, we need to ensure that rustc keeps the _later_ reference
11
15
# to foo, and not the former one.
12
16
RUSTC_FLAGS = \
13
- -C prefer-dynamic \
14
17
-l static=bar \
15
18
-l foo \
16
19
-l static=baz \
@@ -20,3 +23,5 @@ RUSTC_FLAGS = \
20
23
all : $(call DYLIB,foo) $(call STATICLIB,bar) $(call STATICLIB,baz)
21
24
$(RUSTC ) $(RUSTC_FLAGS ) main.rs
22
25
$(call RUN,main)
26
+
27
+ endif
You can’t perform that action at this time.
0 commit comments