profile.mk: Add support for llvm xray

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-12-15 12:47:19 +00:00
commit 0e59aa8533

View file

@ -3,7 +3,7 @@ clean:
PROF_EXE_PATH ?= $(EXE_PATH)
CALLGRIND_OUT ?= callgrind.out
OPROF_OUT_DIR ?= oprofile-dir
OPROF_OUT_DIR ?= oprofile-data
ifeq ($(USE_GPROF),true)
PROJECT_CPPFLAGS += -pg
@ -19,3 +19,10 @@ ifeq ($(USE_GCOV),true)
clean: clean.gcov
endif
ifeq ($(COMPILER_SUITE),clang)
ifeq ($(USE_XRAY),true)
PROJECT_CPPFLAGS += -fxray-instrument -fxray-instruction-threshold=1
PROJECT_CFLAGS += -fxray-instrument -fxray-instruction-threshold=1
#PROJECT_LDFLAGS += -fxray-instrument
endif
endif