File tree 2 files changed +20
-1
lines changed
src/test/run-make-fulldeps
cross-lang-lto-upstream-rlibs
2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 1
-
2
1
-include ../tools.mk
3
2
3
+ # ignore windows due to libLLVM being present in PATH and the PATH and library path being the same
4
+ # (so fixing it is harder). See #57765 for context
5
+ ifndef IS_WINDOWS
6
+
4
7
# This test makes sure that we don't loose upstream object files when compiling
5
8
# staticlibs with -Zcross-lang-lto
6
9
@@ -21,3 +24,9 @@ all: staticlib.rs upstream.rs
21
24
$(RUSTC) staticlib.rs -Z cross-lang-lto -Ccodegen-units=1 -Clto=thin -L. -o $(TMPDIR)/staticlib.a
22
25
(cd $(TMPDIR); $(LD_LIB_PATH_ENVVAR)=$(REAL_LD_LIBRARY_PATH) llvm-ar x ./staticlib.a)
23
26
ls $(TMPDIR)/upstream.*.rcgu.o
27
+
28
+ else
29
+
30
+ all :
31
+
32
+ endif
Original file line number Diff line number Diff line change 1
1
2
2
-include ../tools.mk
3
3
4
+ # ignore windows due to libLLVM being present in PATH and the PATH and library path being the same
5
+ # (so fixing it is harder). See #57765 for context
6
+ ifndef IS_WINDOWS
7
+
4
8
# This test makes sure that the object files we generate are actually
5
9
# LLVM bitcode files (as used by linker LTO plugins) when compiling with
6
10
# -Z cross-lang-lto.
@@ -45,3 +49,9 @@ rdylib: lib.rs
45
49
exe : lib.rs
46
50
$(BUILD_EXE ) -o $(TMPDIR ) /exe.o
47
51
$(call ASSERT_IS_BITCODE_OBJ, $(TMPDIR ) /exe.o)
52
+
53
+ else
54
+
55
+ all :
56
+
57
+ endif
You can’t perform that action at this time.
0 commit comments