Skip to content

Commit 90bac72

Browse files
authored
[AMDGPU][Offload] Update bot build shared libs (#265)
This updates our current staging builder to move closer to how we build the LLVM project downstream.
1 parent c24d8bd commit 90bac72

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

buildbot/osuosl/master/config/builders.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1831,15 +1831,31 @@
18311831
'builddir': "openmp-offload-amdgpu-runtime-2",
18321832
'factory' : OpenMPBuilder.getOpenMPCMakeBuildFactory(
18331833
clean=True,
1834-
enable_runtimes=['compiler-rt', 'openmp', 'offload'],
1835-
depends_on_projects=['llvm','clang','lld', 'offload', 'openmp', 'compiler-rt'],
1834+
enable_runtimes=['compiler-rt', 'libunwind', 'libcxx', 'libcxxabi', 'openmp', 'offload'],
1835+
depends_on_projects=['llvm','clang','lld', 'offload', 'openmp', 'compiler-rt', 'libunwind', 'libcxx', 'libcxxabi' ],
18361836
extraCmakeArgs=[
18371837
"-DCMAKE_BUILD_TYPE=Release",
18381838
"-DCLANG_DEFAULT_LINKER=lld",
18391839
"-DLLVM_TARGETS_TO_BUILD=X86;AMDGPU",
18401840
"-DLLVM_ENABLE_ASSERTIONS=ON",
18411841
"-DCMAKE_C_COMPILER_LAUNCHER=ccache",
18421842
"-DCMAKE_CXX_COMPILER_LAUNCHER=ccache",
1843+
"-DLIBCXX_ENABLE_SHARED=OFF",
1844+
"-DLIBCXX_ENABLE_STATIC=ON",
1845+
"-DLIBCXX_INSTALL_LIBRARY=OFF",
1846+
"-DLIBCXX_INSTALL_HEADERS=OFF",
1847+
"-DLIBCXXABI_ENABLE_SHARED=OFF",
1848+
"-DLIBCXXABI_ENABLE_STATIC=ON",
1849+
"-DLIBCXXABI_INSTALL_STATIC_LIBRARY=OFF",
1850+
"-DLLVM_ENABLE_ZLIB=ON",
1851+
"-DLLVM_ENABLE_Z3_SOLVER=OFF",
1852+
"-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON",
1853+
"-DCMAKE_CXX_STANDARD=17",
1854+
"-DBUILD_SHARED_LIBS=ON",
1855+
"-DLLVM_ENABLE_LIBCXX=ON",
1856+
"-DCLANG_DEFAULT_RTLIB=compiler-rt",
1857+
"-DCLANG_DEFAULT_UNWINDLIB=libgcc",
1858+
"-DLIBOMPTARGET_PLUGINS_TO_BUILD=amdgpu;host",
18431859
],
18441860
env={
18451861
'HSA_ENABLE_SDMA':'0',

0 commit comments

Comments
 (0)