From af9fb9f7855df1e1cb5929d5a71f850d99f3b8b8 Mon Sep 17 00:00:00 2001 From: Jelte Fennema Date: Mon, 16 Sep 2019 15:22:07 +0200 Subject: [PATCH] Fix depend arguments for OSX clang cpp (#2978) A better fix for #2975. Apparently for OSX cpp -MF and -MT shouldn't have a space in between the flag and their value. Without the space it still works for gcc as well. --- src/backend/distributed/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/distributed/Makefile b/src/backend/distributed/Makefile index 831b55d11..175bce278 100644 --- a/src/backend/distributed/Makefile +++ b/src/backend/distributed/Makefile @@ -37,7 +37,7 @@ SQL_BUILDDIR=build/sql $(generated_sql_files): $(citus_abs_srcdir)/build/%: % @mkdir -p $(citus_abs_srcdir)/$(SQL_DEPDIR) $(citus_abs_srcdir)/$(SQL_BUILDDIR) - cd $(citus_abs_srcdir) && cpp -undef -w -P $< > $@ + cd $(citus_abs_srcdir) && cpp -undef -w -P -MMD -MP -MF$(SQL_DEPDIR)/$(*F).Po -MT$@ $< > $@ SQL_Po_files := $(wildcard $(SQL_DEPDIR)/*.Po) ifneq (,$(SQL_Po_files))