File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -199,9 +199,7 @@ rocm-*)
199199 if [[ " ${VERSION# rocm-} " == " trunk" ]]; then
200200 BRANCH=amd-staging
201201 VERSION=rocm-trunk-$( date +%Y%m%d)
202- CMAKE_EXTRA_ARGS+=(" -DLLVM_ENABLE_ASSERTIONS=1" )
203202 ROCM_VERSION=999999 # trunk builds are "infinitely" far into the future
204- LLVM_ENABLE_RUNTIMES+=" ;libunwind"
205203 else
206204 TAG=${VERSION}
207205 if [[ " ${VERSION} " =~ rocm-([0-9]+)\. ([0-9]+)\. [^.]+ ]]; then
@@ -215,8 +213,18 @@ rocm-*)
215213 ROCM_DEVICE_LIBS_URL=https://github.com/ROCm/ROCm-Device-Libs.git
216214 fi
217215 URL=https://github.com/ROCm/llvm-project.git
218- LLVM_ENABLE_PROJECTS=" clang;lld;clang-tools-extra;compiler-rt"
219216 CMAKE_EXTRA_ARGS+=(" -DLLVM_TARGETS_TO_BUILD=AMDGPU;X86" )
217+
218+ if (( ROCM_VERSION < 602 )) ; then
219+ LLVM_ENABLE_PROJECTS=" clang;lld;clang-tools-extra;compiler-rt"
220+ else
221+ # Does not compile with 9.2
222+ GCC_VERSION=9.4.0
223+ LLVM_ENABLE_PROJECTS=" clang;lld;clang-tools-extra"
224+ LLVM_ENABLE_RUNTIMES+=" ;libunwind;compiler-rt"
225+ CMAKE_EXTRA_ARGS+=(" -DLLVM_ENABLE_ASSERTIONS=1" )
226+ fi
227+
220228 ROCM_PATCH=" ${ROOT} /patches/ce-clang-${VERSION} .patch"
221229 if [[ -e " $ROCM_PATCH " ]]; then
222230 PATCHES_TO_APPLY+=(" $ROCM_PATCH " )
You can’t perform that action at this time.
0 commit comments