Skip to content

Commit 34f8c0b

Browse files
committed
[LLVM] Only enable Intel JIT Events on x86_64 architecture
1 parent 1355b59 commit 34f8c0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

L/LLVM/common.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@ if [[ ${target} == *linux* ]]; then
248248
# CMAKE_FLAGS+=(-DLLVM_USE_OPROFILE=1)
249249
fi
250250
# if [[ ${target} == *linux* ]] || [[ ${target} == *mingw32* ]]; then
251-
if [[ ${target} == *linux* ]]; then # TODO only LLVM12
251+
if [[ "${LLVM_MAJ_VER}" -ge "12" && ${target} == x86_64-linux* ]];
252+
# Intel VTune is available only on x86_64 architectures
252253
CMAKE_FLAGS+=(-DLLVM_USE_INTEL_JITEVENTS=1)
253254
fi
254255

0 commit comments

Comments
 (0)