summaryrefslogtreecommitdiffstats
path: root/llvm/utils/docker/example/build
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2017-06-30 09:46:45 +0000
committerIlya Biryukov <ibiryukov@google.com>2017-06-30 09:46:45 +0000
commitaf351dae0252c4f9f442100ca1b133b2f0886ff3 (patch)
tree6c0157f80e84ad817a1909931b99003fcfca2b06 /llvm/utils/docker/example/build
parent99a16aa19e4785e34ae10d0aee64d00fe4f18a28 (diff)
downloadbcm5719-llvm-af351dae0252c4f9f442100ca1b133b2f0886ff3.tar.gz
bcm5719-llvm-af351dae0252c4f9f442100ca1b133b2f0886ff3.zip
Added Dockerfiles to build clang from sources.
Reviewers: klimek, chandlerc, mehdi_amini Reviewed By: klimek, mehdi_amini Subscribers: mehdi_amini, jlebar, llvm-commits Differential Revision: https://reviews.llvm.org/D34197 llvm-svn: 306810
Diffstat (limited to 'llvm/utils/docker/example/build')
-rw-r--r--llvm/utils/docker/example/build/Dockerfile26
1 files changed, 26 insertions, 0 deletions
diff --git a/llvm/utils/docker/example/build/Dockerfile b/llvm/utils/docker/example/build/Dockerfile
new file mode 100644
index 00000000000..597ccfeb4f2
--- /dev/null
+++ b/llvm/utils/docker/example/build/Dockerfile
@@ -0,0 +1,26 @@
+#===- llvm/utils/docker/example/build/Dockerfile -------------------------===//
+#
+# The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+#===----------------------------------------------------------------------===//
+# This is an example Dockerfile to build an image that compiles clang.
+# Replace FIXMEs to prepare your own image.
+
+# FIXME: Replace 'ubuntu' with your base image
+FROM ubuntu
+
+# FIXME: Change maintainer name
+LABEL maintainer "Maintainer <maintainer@email>"
+
+# FIXME: Install llvm/clang build dependencies. Including compiler to
+# build stage1, cmake, subversion, ninja, etc.
+
+# Arguments to pass to build_install_clang.sh.
+ARG buildscript_args
+
+# Run the build. Results of the build will be available as /tmp/clang.tar.gz.
+ADD scripts/build_install_llvm.sh /tmp
+RUN /tmp/build_install_llvm.sh ${buildscript_args}
OpenPOWER on IntegriCloud