llvm/libc/src/fenv/CMakeLists.txt

add_entrypoint_object(
  fegetround
  SRCS
    fegetround.cpp
  HDRS
    fegetround.h
  DEPENDS
    libc.src.__support.FPUtil.fenv_impl
  COMPILE_OPTIONS
    -O2
)

add_entrypoint_object(
  fesetround
  SRCS
    fesetround.cpp
  HDRS
    fesetround.h
  DEPENDS
    libc.src.__support.FPUtil.fenv_impl
  COMPILE_OPTIONS
    -O2
)

add_entrypoint_object(
  feclearexcept
  SRCS
    feclearexcept.cpp
  HDRS
    feclearexcept.h
  DEPENDS
    libc.src.__support.FPUtil.fenv_impl
  COMPILE_OPTIONS
    -O2
)

add_entrypoint_object(
  feraiseexcept
  SRCS
    feraiseexcept.cpp
  HDRS
    feraiseexcept.h
  DEPENDS
    libc.src.__support.FPUtil.fenv_impl
  COMPILE_OPTIONS
    -O2
)

add_entrypoint_object(
  fetestexcept
  SRCS
    fetestexcept.cpp
  HDRS
    fetestexcept.h
  DEPENDS
    libc.src.__support.FPUtil.fenv_impl
  COMPILE_OPTIONS
    -O2
)

add_entrypoint_object(
  fetestexceptflag
  SRCS
    fetestexceptflag.cpp
  HDRS
    fetestexceptflag.h
  DEPENDS
    libc.hdr.types.fexcept_t
    libc.src.__support.FPUtil.fenv_impl
  COMPILE_OPTIONS
    -O2
)

add_entrypoint_object(
  fegetenv
  SRCS
    fegetenv.cpp
  HDRS
    fegetenv.h
  DEPENDS
    libc.hdr.types.fenv_t
    libc.src.__support.FPUtil.fenv_impl
  COMPILE_OPTIONS
    -O2
)

add_entrypoint_object(
  fesetenv
  SRCS
    fesetenv.cpp
  HDRS
    fesetenv.h
  DEPENDS
    libc.hdr.types.fenv_t
    libc.src.__support.FPUtil.fenv_impl
  COMPILE_OPTIONS
    -O2
)

add_entrypoint_object(
  fegetexceptflag
  SRCS
    fegetexceptflag.cpp
  HDRS
    fegetexceptflag.h
  DEPENDS
    libc.hdr.fenv_macros
    libc.hdr.types.fexcept_t
    libc.src.__support.FPUtil.fenv_impl
  COMPILE_OPTIONS
    -O2
)

add_entrypoint_object(
  fesetexcept
  SRCS
    fesetexcept.cpp
  HDRS
    fesetexcept.h
  DEPENDS
    libc.src.__support.FPUtil.fenv_impl
  COMPILE_OPTIONS
    -O2
)

add_entrypoint_object(
  fesetexceptflag
  SRCS
    fesetexceptflag.cpp
  HDRS
    fesetexceptflag.h
  DEPENDS
    libc.hdr.fenv_macros
    libc.hdr.types.fexcept_t
    libc.src.__support.FPUtil.fenv_impl
  COMPILE_OPTIONS
    -O2
)

add_entrypoint_object(
  feholdexcept
  SRCS
    feholdexcept.cpp
  HDRS
    feholdexcept.h
  DEPENDS
    libc.hdr.fenv_macros
    libc.hdr.types.fenv_t
    libc.src.__support.FPUtil.fenv_impl
  COMPILE_OPTIONS
    -O2
)

add_entrypoint_object(
  feupdateenv
  SRCS
    feupdateenv.cpp
  HDRS
    feupdateenv.h
  DEPENDS
    libc.hdr.fenv_macros
    libc.hdr.types.fenv_t
    libc.src.__support.FPUtil.fenv_impl
  COMPILE_OPTIONS
    -O2
)

add_entrypoint_object(
  feenableexcept
  SRCS
    feenableexcept.cpp
  HDRS
    feenableexcept.h
  DEPENDS
    libc.src.__support.FPUtil.fenv_impl
  COMPILE_OPTIONS
    -O2
)

add_entrypoint_object(
  fedisableexcept
  SRCS
    fedisableexcept.cpp
  HDRS
    fedisableexcept.h
  DEPENDS
    libc.src.__support.FPUtil.fenv_impl
  COMPILE_OPTIONS
    -O2
)

add_entrypoint_object(
  fegetexcept
  SRCS
    fegetexcept.cpp
  HDRS
    fegetexcept.h
  DEPENDS
    libc.src.__support.FPUtil.fenv_impl
  COMPILE_OPTIONS
    -O2
)