소스 검색

Add -L command line option to dotest calls when make is run in parallel, to avoid GetCompilerInfo failures

Pierre Muller 2 달 전
부모
커밋
e2e1fcfe63
2개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      tests/Makefile
  2. 4 0
      tests/Makefile.fpc

+ 4 - 0
tests/Makefile

@@ -2707,6 +2707,10 @@ override DOTESTOPT+=-V
 endif
 ifdef TEST_PARALLEL
 override DOTESTOPT+=-L
+else
+ifneq ($(findstring -j,-$(MAKEFLAGS)),)
+override DOTESTOPT+=-L
+endif
 endif
 ifdef TEST_BENCH
 override DOTESTOPT+=-D

+ 4 - 0
tests/Makefile.fpc

@@ -354,6 +354,10 @@ override DOTESTOPT+=-V
 endif
 ifdef TEST_PARALLEL
 override DOTESTOPT+=-L
+else
+ifneq ($(findstring -j,-$(MAKEFLAGS)),)
+override DOTESTOPT+=-L
+endif
 endif
 # Also display benchmarks
 ifdef TEST_BENCH