Following the instructions from llvm XRay instrument guide, I am stuck on the part
cmake -GNinja ../llvm -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS_RELEASE="-fxray-instrument" -DCMAKE_CXX_FLAGS="-fxray-instrument" \
as it is giving me c++: error: unrecognized command line option '-fxray-instrument
.
I have already built the latest llvm project which has the XRay in the tool directory and I used the "Unix Makefiles" option instead of Ninja.