Mercurial > vim
comparison src/Makefile @ 23782:82a8abc75070 v8.2.2432
patch 8.2.2432: libvterm tests are executed even when libtool doesn't work
Commit: https://github.com/vim/vim/commit/76ab5446d530a1c81ead0ee42cb55b4a4d515bad
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 30 20:35:28 2021 +0100
patch 8.2.2432: libvterm tests are executed even when libtool doesn't work
Problem: Libvterm tests are executed even when libtool doesn't work.
Solution: Only run libvterm tests if /usr/bin/gcc exists.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Jan 2021 20:45:04 +0100 |
parents | 8eed19bd0235 |
children | 7bc92a651472 |
comparison
equal
deleted
inserted
replaced
23781:6430ca40fd3b | 23782:82a8abc75070 |
---|---|
2292 run_message_test: $(MESSAGE_TEST_TARGET) | 2292 run_message_test: $(MESSAGE_TEST_TARGET) |
2293 $(VALGRIND) ./$(MESSAGE_TEST_TARGET) || exit 1; echo $* passed; | 2293 $(VALGRIND) ./$(MESSAGE_TEST_TARGET) || exit 1; echo $* passed; |
2294 | 2294 |
2295 # Run the libvterm tests. | 2295 # Run the libvterm tests. |
2296 # This works only on GNU make, not on BSD make. | 2296 # This works only on GNU make, not on BSD make. |
2297 # Libtool requires "gcc". | |
2297 test_libvterm: | 2298 test_libvterm: |
2298 @if $(MAKE) --version 2>/dev/null | grep -qs "GNU Make"; then \ | 2299 @if $(MAKE) --version 2>/dev/null | grep -qs "GNU Make"; then \ |
2299 cd libvterm; $(MAKE) -f Makefile test CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"; \ | 2300 if test -x "/usr/bin/gcc"; then \ |
2301 cd libvterm; $(MAKE) -f Makefile test CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"; \ | |
2302 fi \ | |
2300 fi | 2303 fi |
2301 | 2304 |
2302 # Run individual OLD style test. | 2305 # Run individual OLD style test. |
2303 # These do not depend on the executable, compile it when needed. | 2306 # These do not depend on the executable, compile it when needed. |
2304 $(SCRIPTS_TINY): | 2307 $(SCRIPTS_TINY): |