@@ -10,6 +10,13 @@
|
||||
%global rocm_release %{rocm_major}.%{rocm_minor}
|
||||
%global rocm_version %{rocm_release}.%{rocm_patch}
|
||||
|
||||
%bcond_with debug
|
||||
%if %{with debug}
|
||||
%global build_type DEBUG
|
||||
%else
|
||||
%global build_type RelWithDebInfo
|
||||
%endif
|
||||
|
||||
Name: rocclr
|
||||
Version: %{rocm_version}
|
||||
Release: %autorelease
|
||||
@@ -165,7 +172,7 @@ export PATH=%rocmllvm_prefix/bin:$PATH
|
||||
-DCLR_BUILD_OCL=ON \
|
||||
-DFILE_REORG_BACKWARD_COMPATIBILITY=OFF \
|
||||
-DHIP_ENABLE_ROCPROFILER_REGISTER=OFF \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
-DCMAKE_BUILD_TYPE=%{build_type}
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
|
||||
Reference in New Issue
Block a user