Skip to content

Commit 157deae

Browse files
authored
Merge pull request #348 from arthurscchan/oss-fuzz-build-add-unit-test
oss-fuzz: Add unit test build
2 parents 1cc6cf5 + b2535ce commit 157deae

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)