Skip to content

Instantly share code, notes, and snippets.

@step21
Created August 24, 2016 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save step21/4d9e15572cf166a1bcf661b9501ba3a7 to your computer and use it in GitHub Desktop.
Save step21/4d9e15572cf166a1bcf661b9501ba3a7 to your computer and use it in GitHub Desktop.
# 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 <step21@devtal.de>
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"]
#!/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 $@
#!/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