Change Octave to run C tests in SWIG C mode, not C++ mode
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12021 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
64641c9750
commit
e854baabec
3 changed files with 4 additions and 2 deletions
|
|
@ -346,7 +346,7 @@ OCTAVE_SO = @OCTAVE_SO@
|
|||
octave: $(SRCS)
|
||||
$(SWIG) -octave $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(CXX) -g -c $(CCSHARED) $(CFLAGS) $(ICXXSRCS) $(INCLUDES) -I$(OCTAVE_INCLUDE)
|
||||
$(CC) -g -c $(CCSHARED) $(CFLAGS) $(SRCS) $(INCLUDES)
|
||||
$(CC) -g -c $(CCSHARED) $(CFLAGS) $(SRCS) $(CSRCS) $(INCLUDES)
|
||||
$(LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(OCTAVE_DLNK) $(LIBS) -o $(LIBPREFIX)$(TARGET)$(OCTAVE_SO)
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ include $(srcdir)/../common.mk
|
|||
|
||||
# Overridden variables here
|
||||
LIBS = -L.
|
||||
CSRCS = octave_empty.c
|
||||
|
||||
# Custom tests - tests with additional commandline options
|
||||
# none!
|
||||
|
|
@ -44,7 +45,7 @@ LIBS = -L.
|
|||
|
||||
%.ctest:
|
||||
$(setup)
|
||||
+$(swig_and_compile_cpp)
|
||||
+$(swig_and_compile_c)
|
||||
$(run_testcase)
|
||||
|
||||
%.multicpptest:
|
||||
|
|
|
|||
1
Examples/test-suite/octave/octave_empty.c
Normal file
1
Examples/test-suite/octave/octave_empty.c
Normal file
|
|
@ -0,0 +1 @@
|
|||
/* empty C file for the Octave test-suite C tests is needed - build system workaround as the generated files for Octave are C++ files */
|
||||
Loading…
Add table
Add a link
Reference in a new issue