[PATCH 7/8] test: Don't attempt to build symbol-test on Cygwin

Vladimir Panteleev notmuch at thecybershadow.net
Tue Aug 22 15:43:38 PDT 2017


From: Vladimir Panteleev <vladimir at thecybershadow.net>

The test fails to build on Cygwin; since Windows PE exports are
already namespaced (by module name), the test is likely unnecessary on
Windows anyway.
---
 test/Makefile.local | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test/Makefile.local b/test/Makefile.local
index 0df72c92..05fcdd6f 100644
--- a/test/Makefile.local
+++ b/test/Makefile.local
@@ -48,10 +48,13 @@ test_main_srcs=$(dir)/arg-test.c \
 	      $(dir)/random-corpus.c \
 	      $(dir)/parse-time.c \
 	      $(dir)/smtp-dummy.c \
-	      $(dir)/symbol-test.cc \
 	      $(dir)/make-db-version.cc \
 	      $(dir)/ghost-report.cc
 
+ifneq ($(PLATFORM),CYGWIN)
+test_main_srcs+=$(dir)/symbol-test.cc
+endif
+
 test_srcs=$(test_main_srcs) $(dir)/database-test.c
 
 TEST_BINARIES := $(test_main_srcs:.c=)
-- 
2.13.3



More information about the notmuch mailing list