From 13419fd2f4793ef3dd35e26ef23d889fcaedd105 Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Mon, 16 Dec 2024 16:39:50 -0800 Subject: [PATCH] Build with system clang Signed-off-by: Tom Rix --- hipify.spec | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/hipify.spec b/hipify.spec index 4415e7c..0874c34 100644 --- a/hipify.spec +++ b/hipify.spec @@ -17,11 +17,9 @@ License: MIT Source0: %{url}/%{upstreamname}/archive/rocm-%{version}.tar.gz#/%{upstreamname}-%{version}.tar.gz Patch0: 0001-prepare-hipify-cmake-for-fedora.patch +BuildRequires: clang-devel +BuildRequires: llvm-devel BuildRequires: cmake -# Hipify doesn't need hipcc, but this is the easiest way to pull in the same -# llvm/lld/clang/compiler-rt version as hipcc: -BuildRequires: hipcc -BuildRequires: rocm-compilersupport-macros BuildRequires: perl BuildRequires: zlib-devel @@ -39,10 +37,7 @@ HIP C++ automatically. %build -export CC=%{rocmllvm_bindir}/clang -export CXX=%{rocmllvm_bindir}/clang - -%cmake -DCMAKE_PREFIX_PATH=%{rocmllvm_cmakedir}/.. +%cmake %cmake_build %check @@ -77,3 +72,4 @@ fi %changelog * Tue Dec 10 2024 Tom Rix - 6.3.0-1 - Update to 6.3 +- Build with system clang