]> git.lizzy.rs Git - rust.git/commitdiff
Ignore LLVM-dependent run-make tests on Windows
authorMark Rousskov <mark.simulacrum@gmail.com>
Thu, 24 Jan 2019 19:17:02 +0000 (12:17 -0700)
committerMark Rousskov <mark.simulacrum@gmail.com>
Sat, 26 Jan 2019 15:02:08 +0000 (08:02 -0700)
This should solve the PATH issue, and we don't need to test cross-lang
LTO working on all OS-es.

src/test/run-make-fulldeps/cross-lang-lto-upstream-rlibs/Makefile
src/test/run-make-fulldeps/cross-lang-lto/Makefile

index 6992dab1a1bf12898be8bc9040ff1fa78679e018..4f33b1c59e0848c9be4d97b33814292eff6a0537 100644 (file)
@@ -1,6 +1,9 @@
-
 -include ../tools.mk
 
+# ignore windows due to libLLVM being present in PATH and the PATH and library path being the same
+# (so fixing it is harder). See #57765 for context
+ifndef IS_WINDOWS
+
 # This test makes sure that we don't loose upstream object files when compiling
 # staticlibs with -Zcross-lang-lto
 
@@ -21,3 +24,9 @@ all: staticlib.rs upstream.rs
        $(RUSTC) staticlib.rs -Z cross-lang-lto -Ccodegen-units=1 -Clto=thin -L. -o $(TMPDIR)/staticlib.a
        (cd $(TMPDIR); $(LD_LIB_PATH_ENVVAR)=$(REAL_LD_LIBRARY_PATH) llvm-ar x ./staticlib.a)
        ls $(TMPDIR)/upstream.*.rcgu.o
+
+else
+
+all:
+
+endif
index 4d1fb7b9537397830e4e6b56c3746cc36b243471..57a19a0ccb0370fb0d360ea591e8986bcc11eef3 100644 (file)
@@ -1,6 +1,10 @@
 
 -include ../tools.mk
 
+# ignore windows due to libLLVM being present in PATH and the PATH and library path being the same
+# (so fixing it is harder). See #57765 for context
+ifndef IS_WINDOWS
+
 # This test makes sure that the object files we generate are actually
 # LLVM bitcode files (as used by linker LTO plugins) when compiling with
 # -Z cross-lang-lto.
@@ -45,3 +49,9 @@ rdylib: lib.rs
 exe: lib.rs
        $(BUILD_EXE) -o $(TMPDIR)/exe.o
        $(call ASSERT_IS_BITCODE_OBJ, $(TMPDIR)/exe.o)
+
+else
+
+all:
+
+endif