Context: https://github.com/llvm/llvm-project/pull/87017 - Add proxy header `libc/hdr/math_macros.h` that will: - include `<math.h>` in overlay mode, - include `"include/llvm-libc-macros/math-macros.h"` in full build mode. - Its corresponding CMake target `libc.hdr.math_macros` will only depend on `libc.include.math` and `libc.include.llvm-libc-macros.math_macros` in full build mode. - Replace all `#include "include/llvm-libc-macros/math-macros.h"` with `#include "hdr/math_macros.h"`. - Add dependency to `libc.hdr.math_macros` CMake target when using `add_fp_unittest`. - Update the remaining dependency. - Update bazel overlay: add `libc:hdr_math_macros` target, and replacing all dependency on `libc:llvm_libc_macros_math_macros` with `libc:hdr_math_macros`.
64 lines
1.4 KiB
CMake
64 lines
1.4 KiB
CMake
add_libc_fuzzer(
|
|
math_differential_fuzz
|
|
SRCS
|
|
math_differential_fuzz.cpp
|
|
HDRS
|
|
Compare.h
|
|
RemQuoDiff.h
|
|
SingleInputSingleOutputDiff.h
|
|
TwoInputSingleOutputDiff.h
|
|
DEPENDS
|
|
libc.hdr.math_macros
|
|
libc.src.math.ceil
|
|
libc.src.math.ceilf
|
|
libc.src.math.ceill
|
|
libc.src.math.fdim
|
|
libc.src.math.fdimf
|
|
libc.src.math.fdiml
|
|
libc.src.math.floor
|
|
libc.src.math.floorf
|
|
libc.src.math.floorl
|
|
libc.src.math.frexp
|
|
libc.src.math.frexpf
|
|
libc.src.math.frexpl
|
|
libc.src.math.hypotf
|
|
libc.src.math.ldexp
|
|
libc.src.math.ldexpf
|
|
libc.src.math.ldexpl
|
|
libc.src.math.logb
|
|
libc.src.math.logbf
|
|
libc.src.math.logbl
|
|
libc.src.math.modf
|
|
libc.src.math.modff
|
|
libc.src.math.modfl
|
|
libc.src.math.sqrt
|
|
libc.src.math.sqrtf
|
|
libc.src.math.sqrtl
|
|
libc.src.math.remainder
|
|
libc.src.math.remainderf
|
|
libc.src.math.remainderl
|
|
libc.src.math.remquo
|
|
libc.src.math.remquof
|
|
libc.src.math.remquol
|
|
libc.src.math.round
|
|
libc.src.math.roundf
|
|
libc.src.math.roundl
|
|
libc.src.math.trunc
|
|
libc.src.math.truncf
|
|
libc.src.math.truncl
|
|
libc.src.__support.FPUtil.fp_bits
|
|
libc.src.__support.CPP.type_traits
|
|
)
|
|
|
|
add_libc_fuzzer(
|
|
nextafter_differential_fuzz
|
|
SRCS
|
|
nextafter_differential_fuzz.cpp
|
|
HDRS
|
|
TwoInputSingleOutputDiff.h
|
|
DEPENDS
|
|
libc.src.math.nextafter
|
|
libc.src.math.nextafterf
|
|
libc.src.math.nextafterl
|
|
)
|