set(NO_REFERENCE_OUTPUT true)
if(ARCH STREQUAL "x86")
  # Disabled for Apple platforms, since the bitcode's baked-in datalayout is
  # incompatible with Mach-O platforms.
  if(NOT APPLE)
    add_subdirectory(vector_widen)

    # We need at least clang 5.0 to process the bitcode here.
    if(CMAKE_C_COMPILER_ID STREQUAL "Clang" AND
       CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND
       NOT CMAKE_C_COMPILER_VERSION VERSION_LESS "5.0" AND
       NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "5.0")
    add_subdirectory(fft)
    endif()
  endif()

  # E2E regression tests from SAP
  add_subdirectory(sap_fct_splitting)
endif()
