check_cxx_compiler_flag(-fxray-instrument COMPILER_HAS_FXRAY_INSTRUMENT)
if(ARCH STREQUAL "x86" AND COMPILER_HAS_FXRAY_INSTRUMENT)
  list(APPEND CPPFLAGS -std=c++11 -Wl,--gc-sections -fxray-instrument)
  list(APPEND LDFLAGS -fxray-instrument)
  llvm_test_run()
  llvm_test_executable(fdrmode-bench fdrmode-bench.cc)
  target_link_libraries(fdrmode-bench benchmark)
endif()
