Created
August 24, 2016 16:07
-
-
Save step21/4d9e15572cf166a1bcf661b9501ba3a7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.dropbox.com/sh/j11fn9hcsvttbul/AACfo97HVg-19wW1Ezwd6dBAa?dl=0 / get debs from here / put into ./shared/ next to Dockerfile | |
# This builds docker image with lanai enabled clang | |
# lanaiclang packages should be in the directory "shared" together with this dockerfile | |
# two scripts are provided for clang-3.9 and llc executable. if additional ones are needed, these can be created by using a different entry point | |
FROM ubuntu:14.04 | |
MAINTAINER Florian Idelberger <[email protected]> | |
RUN apt-get update && apt-get install -y build-essential binfmt-support libxml2 python libobjc-4.8-dev lib32gcc1 lib32stdc++6 libc6-i386 libedit2 libpython2.7 libffi-dev libtinfo-dev libjs-jquery libjs-underscore python-six | |
COPY shared/* /tmp/ | |
RUN dpkg -i /tmp/*.deb | |
ENTRYPOINT ["/usr/bin/llc-3.9"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: | |
# ./lanaiclang source | |
# and possibly other arguments such as | |
# clang-3.9 -S -emit-llvm -target lanai-unknown-unknown hellolanai.c -o hellolanai.obj | |
# | |
# | |
docker run -i --rm --user $(id -u):$(id -g) -v $(pwd)/:/tmp --workdir /tmp --entrypoint /usr/bin/clang-3.9 lanaidock/lanaidock:v1 $@ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: | |
# ./lanaillc source | |
# and possible other arguments | |
# such as llc-3.9 -filetype=obj hellolanai.obj -o hellolanai.llc.o | |
# OR llc-3.9 hellolanai.obj | |
docker run -i --rm --user $(id -u):$(id -g) -v $(pwd)/:/tmp --workdir /tmp --entrypoint /usr/bin/llc-3.9 lanaidock/lanaidock:v1 $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment