Skip to content

Commit a3abe57

Browse files
committed
prep. for building an env image
1 parent 7ac0418 commit a3abe57

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM buildpack-deps:sable
2+
3+
RUN useradd -ms /bin/bash ez80
4+
USER ez80
5+
WORKDIR /home/ez80
6+
COPY clang/0001-Emit-GAS-sytax.patch 0001-Emit-GAS-sytax.patch
7+
RUN curl -LO https://github.com/jacobly0/llvm-project/archive/1b767f5cc455.zip
8+
RUN unzip 1b767f5cc455.zip
9+
RUN cd llvm-project-1b767f5cc45505fb2d6285e717d439c6b1ea2e7f && patch -p1 < ../0001-Emit-GAS-sytax.patch
10+
RUN cd llvm-project-1b767f5cc45505fb2d6285e717d439c6b1ea2e7f \
11+
&& mkdir build \
12+
&& cmake -G Ninja -DLLVM_ENABLE_PROJECTS="clang" \
13+
-DCMAKE_INSTALL_PREFIX=/opt/local/ez80-none-elf \
14+
-DCMAKE_BUILD_TYPE=Release \
15+
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=Z80 \
16+
-DLLVM_TARGETS_TO_BUILD= \
17+
-DLLVM_DEFAULT_TARGET_TRIPLE=ez80-none-elf \
18+
../llvm-project-1b767f5cc45505fb2d6285e717d439c6b1ea2e7f/llvm \
19+
&& ninja install

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
1. C/C++ compiler: LLVM with Clang
44
2. Assembler, linker, object tools: GNU binutils
5-
3. Standard library: patches from ZDS-II, fillers
5+
3. Standard library: MIT licensed from scratch reimplementation of intrinsics

0 commit comments

Comments
 (0)