File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM gentoo/stage3:latest
2+
3+ # Remove the default profile
4+ RUN rm -rf /etc/portage/make.profile
5+
6+ # Sync the portage tree
7+ RUN emerge-webrsync --no-pgp-verify
8+
9+ # Set the profile to the latest stable version
10+ RUN ln -snf /var/db/repos/gentoo/profiles/default/linux/amd64/23.0 /etc/portage/make.profile
11+ RUN rm -rf /etc/portage/etc
12+ RUN mkdir -p /etc/portage/etc/portage
13+
14+ # Set the profile to the latest stable version
15+ RUN eselect profile list
16+ RUN eselect profile set default/linux/amd64/23.0
17+
18+ # Install the necessary packages
19+ RUN emerge --quiet --oneshot --noreplace \
20+ dev-python/pip \
21+ sys-devel/gcc \
22+ sys-devel/gcc-config \
23+ dev-build/cmake \
24+ dev-build/ninja \
25+ dev-vcs/git \
26+ net-misc/curl \
27+ net-misc/wget \
28+ dev-libs/openssl \
29+ app-misc/ca-certificates
30+
31+ RUN git clone -b running-fixes --depth=1 https://github.com/llvm-ml/llvm-project \
32+ && mkdir /llvm-project/build \
33+ && cd /llvm-project/build \
34+ && cmake -GNinja -DCMAKE_BUILD_TYPE=Release \
35+ -DLLVM_ENABLE_PROJECTS="clang;lld" \
36+ -DLLVM_ENABLE_RUNTIMES="compiler-rt;openmp" \
37+ -DCMAKE_INSTALL_PREFIX=/usr \
38+ -DLLVM_TARGETS_TO_BUILD=Native \
39+ -DLLVM_ENABLE_ASSERTIONS=ON \
40+ ../llvm \
41+ && ninja install \
42+ && cd / \
43+ && rm -rf /llvm-project
44+
45+ CMD ["/bin/bash"]
You can’t perform that action at this time.
0 commit comments