Add --with debug option

Signed-off-by: Tom Rix <Tom.Rix@amd.com>
This commit is contained in:
2024-09-02 05:21:31 -07:00
parent 925862180a
commit f8cfd2ebfd

View File

@@ -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