Skip to content

Commit b2535ce

Browse files
committed
oss-fuzz: Add unit test build
Signed-off-by: Arthur Chan <[email protected]>
1 parent 1cc6cf5 commit b2535ce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

fuzz/build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@ $CXX $CFLAGS $CXXFLAGS \
55
-c $SRC/fast_float/fuzz/from_chars.cc -o from_chars.o
66

77
$CXX $CFLAGS $CXXFLAGS $LIB_FUZZING_ENGINE from_chars.o \
8-
-o $OUT/from_chars
8+
-o $OUT/from_chars
9+
10+
# Build unit tests
11+
cmake -DFASTFLOAT_TEST=ON -DCMAKE_EXE_LINKER_FLAGS="-lpthread"
12+
make

0 commit comments

Comments
 (0)