Merge pull request #348 from arthurscchan/oss-fuzz-build-add-unit-test

oss-fuzz: Add unit test build
This commit is contained in:
Daniel Lemire 2025-12-18 22:41:49 -05:00 committed by GitHub
commit 157deaeba5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,4 +5,8 @@ $CXX $CFLAGS $CXXFLAGS \
-c $SRC/fast_float/fuzz/from_chars.cc -o from_chars.o -c $SRC/fast_float/fuzz/from_chars.cc -o from_chars.o
$CXX $CFLAGS $CXXFLAGS $LIB_FUZZING_ENGINE from_chars.o \ $CXX $CFLAGS $CXXFLAGS $LIB_FUZZING_ENGINE from_chars.o \
-o $OUT/from_chars -o $OUT/from_chars
# Build unit tests
cmake -DFASTFLOAT_TEST=ON -DCMAKE_EXE_LINKER_FLAGS="-lpthread"
make