Syntax check headers by C module when running the unit tests suite
Catch errors in the generated headers even when we don't have a run test. Unfortunately this uncovered that almost no unit tests actually pass, so many, many more of them had to be disabled.
This commit is contained in:
parent
200ea0e37d
commit
668f2b4a85
2 changed files with 90 additions and 1 deletions
|
|
@ -1734,15 +1734,19 @@ C_LDSHARED = @C_LDSHARED@
|
|||
CXX_LDSHARED = @CXX_LDSHARED@
|
||||
C_SO = @C_SO@
|
||||
|
||||
SYNTAX_CHECK := $(CC) -fsyntax-only -x c
|
||||
|
||||
c: $(SRCDIR_SRCS)
|
||||
$(SWIG) -c $(SWIGOPT) -o $(ISRCS) $(INTERFACEPATH)
|
||||
$(CC) -c $(CCSHARED) -I$(SRCDIR) $(CFLAGS) $(ISRCS) $(SRCDIR_SRCS) $(INCLUDES)
|
||||
$(C_LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) -o $(CLIBPREFIX)$(TARGET)$(C_SO)
|
||||
|
||||
$(SYNTAX_CHECK) -I$(SRCDIR)$(INTERFACEDIR) $(IWRAP:.i=.h)
|
||||
|
||||
c_cpp: $(SRCDIR_SRCS)
|
||||
$(SWIG) -c++ -c $(SWIGOPT) -o $(ICXXSRCS) $(INTERFACEPATH)
|
||||
$(CXX) -c $(CCSHARED) -I$(SRCDIR) $(CXXFLAGS) $(ICXXSRCS) $(SRCDIR_CXXSRCS) $(INCLUDES)
|
||||
$(CXX_LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o $(CLIBPREFIX)$(TARGET)$(C_SO)
|
||||
$(SYNTAX_CHECK) -I$(SRCDIR)$(INTERFACEDIR) $(IWRAP:.i=.h)
|
||||
|
||||
c_compile: $(SRCDIR)$(RUNME).c
|
||||
$(COMPILETOOL) $(CC) $(CFLAGS) -o $(RUNME) -I. $< -L. -l$(TARGET)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue