Skip to content

Commit 1af79dd

Browse files
authored
fix hip-build.sh about compiler-rt (#225)
Build compiler-rt as runtime instead of project. This will use freshly built clang to build compiler-rt instead of the system compiler. Also use lld to link compiler-rt. Both can lower the risk of encounter issues with old system compiler and linker. Fixes buildbot failure https://lab.llvm.org/buildbot/#/builders/123/builds/1580
1 parent f6526c2 commit 1af79dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

zorg/buildbot/builders/annotated/hip-build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ cmake -G Ninja \
7979
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
8080
-DCMAKE_VERBOSE_MAKEFILE=1 \
8181
-DLLVM_TARGETS_TO_BUILD="AMDGPU;X86" \
82-
-DLLVM_ENABLE_PROJECTS="clang;lld;clang-tools-extra;compiler-rt" \
83-
-DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind" \
82+
-DLLVM_ENABLE_PROJECTS="clang;lld;clang-tools-extra" \
83+
-DLLVM_ENABLE_RUNTIMES="compiler-rt;libcxx;libcxxabi;libunwind" \
84+
-DCLANG_DEFAULT_LINKER=lld \
8485
-DLIBCXX_ENABLE_SHARED=OFF \
8586
-DLIBCXX_ENABLE_STATIC=ON \
8687
-DLIBCXX_INSTALL_LIBRARY=OFF \

0 commit comments

Comments
 (0)