mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-06 01:42:53 +03:00
oss-fuzz: Fix CI oss-fuzz test compilation
This commit is contained in:
1 parent
37334b120f
commit
e59df82300
3 files changed
+7
-5
No files matched your search
@@ -256,7 +256,8 @@ jobs:
|
||||
- name: build
|
||||
run: |
|
||||
make
|
||||
make -C tests/oss-fuzz -f Makefile.ci check clean
|
||||
make EXTRA_CFLAGS=-Werror -C tests/oss-fuzz -f Makefile.ci check clean
|
||||
|
||||
documentation:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
+3
-2
@@ -1573,9 +1573,10 @@ else
|
||||
fi
|
||||
|
||||
mkdir -p include/coap$LIBCOAP_API_VERSION
|
||||
head -19 cmake_coap_defines.h.in > include/coap$LIBCOAP_API_VERSION/coap_defines.h
|
||||
DIR=`dirname $0`
|
||||
head -19 $DIR/cmake_coap_defines.h.in > include/coap$LIBCOAP_API_VERSION/coap_defines.h
|
||||
LT_TEMP=`grep -B2 " COAP_" coap_config.h >> include/coap$LIBCOAP_API_VERSION/coap_defines.h`
|
||||
tail -2 cmake_coap_defines.h.in >> include/coap$LIBCOAP_API_VERSION/coap_defines.h
|
||||
tail -2 $DIR/cmake_coap_defines.h.in >> include/coap$LIBCOAP_API_VERSION/coap_defines.h
|
||||
if test "x$LT_TEMP" != "x" ; then
|
||||
AC_MSG_ERROR([Unable to build coap_defines.h])
|
||||
fi
|
||||
@@ -27,7 +27,7 @@ PROGRAMS:=$(patsubst %_target.o, %_fuzzer, $(OBJECTS))
|
||||
all: $(PROGRAMS)
|
||||
|
||||
$(OUT)/%.o: %.c
|
||||
$(CC) $(CPPFLAGS) $(CFLAGS) -c $^ -o $@
|
||||
$(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) -c $^ -o $@
|
||||
|
||||
%_fuzzer: %_target.o
|
||||
$(LINK.cc) $(CXXFLAGS) $^ $(top_builddir)/.libs/$(libcoap).a $(LDFLAGS) $(LDLIBS) $(DTLS_LIBS) -o $@
|
||||
@@ -35,4 +35,4 @@ $(OUT)/%.o: %.c
|
||||
check: $(OBJECTS)
|
||||
|
||||
clean:
|
||||
@-$(RM) $(OBJECTS) $(PROGRAMS)
|
||||
@-$(RM) -f $(OBJECTS) $(PROGRAMS)
|
||||
Reference in new issue
Block a user