From ad279c2b882c4ecd12715fa685820de2d03fcedf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Mon, 6 Jan 2025 01:03:10 +0100 Subject: [PATCH] [build] Enable Intel JIT events only on x86_64 Currently we are enabling it for all Linux systems, but [Intel VTune supports only x86_64](https://www.intel.com/content/www/us/en/developer/articles/system-requirements/vtune-profiler-system-requirements.html) and building LLVM with ITTAPI support is problematic on some platforms (e.g. riscv64). --- Make.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Make.inc b/Make.inc index 2f2ffcad754c4..1c08f4a947b1c 100644 --- a/Make.inc +++ b/Make.inc @@ -486,11 +486,15 @@ endif # Set to 1 to enable profiling with perf ifeq ("$(OS)", "Linux") USE_PERF_JITEVENTS ?= 1 +ifeq ($(ARCH),x86_64) USE_INTEL_JITEVENTS ?= 1 -else +else # ARCH x86_64 +USE_INTEL_JITEVENTS ?= 0 +endif # ARCH x86_64 +else # OS Linux USE_PERF_JITEVENTS ?= 0 USE_INTEL_JITEVENTS ?= 0 -endif +endif # OS Linux JULIACODEGEN := LLVM