We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61608e0 commit 886b9b8Copy full SHA for 886b9b8
projects/libyang/build.sh
@@ -18,15 +18,14 @@
18
cd libyang
19
git checkout devel
20
21
-sed -i 's/add_subdirectory/#add_subdirectory/g' ./tools/CMakeLists.txt
22
mkdir build && cd build
23
-cmake ../ -DBUILD_SHARED_LIBS=OFF
+cmake -DBUILD_SHARED_LIBS=OFF -DENABLE_TOOLS=OFF ..
24
make
25
26
static_pcre=($(find /src/pcre2 -name "libpcre2-8.a"))
27
28
for fuzzer in lyd_parse_mem_json lyd_parse_mem_xml lys_parse_mem; do
29
- $CC $CFLAGS -c ../tests/fuzz/${fuzzer}.c -I../src -I../src/plugins_exts -I./src -I./compat
+ $CC $CFLAGS -c ../tests/fuzz/${fuzzer}.c -I./libyang -I./compat
30
$CXX $CXXFLAGS $LIB_FUZZING_ENGINE ${fuzzer}.o -o $OUT/${fuzzer} \
31
./libyang.a ${static_pcre}
32
done
0 commit comments