diff src/Makefile @ 15168:1cc5524d1081 v8.1.0594

patch 8.1.0594: libvterm tests fail to run on Mac commit https://github.com/vim/vim/commit/8b321d6a521e76c5cbe640272574e4fbd42cba9b Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 15 15:39:28 2018 +0100 patch 8.1.0594: libvterm tests fail to run on Mac Problem: Libvterm tests fail to run on Mac. Solution: Only run libvterm tests on Linux.
author Bram Moolenaar <Bram@vim.org>
date Sat, 15 Dec 2018 15:45:05 +0100
parents 9d05de1ecc6f
children ce92157deb4e
line wrap: on
line diff
--- a/src/Makefile
+++ b/src/Makefile
@@ -2160,8 +2160,12 @@ run_message_test: $(MESSAGE_TEST_TARGET)
 	$(VALGRIND) ./$(MESSAGE_TEST_TARGET) || exit 1; echo $* passed;
 
 # Run the libvterm tests.
+# This currently doesn't work on Mac, only run on Linux for now.
 test_libvterm:
-	cd libvterm; $(MAKE) -f Makefile test CC="$(CC)"
+	@if test `uname` = "Linux"; then \
+		cd libvterm; $(MAKE) -f Makefile test \
+			CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"; \
+	fi
 
 # Run individual OLD style test.
 # These do not depend on the executable, compile it when needed.