blob: 3ae4a547d712e3fd1bc1e93a770fc56689b8e5f5 [file] [log] [blame]
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()