[K/N] Dockerfile for building LLVM
Provide a stable environment for building LLVM for Linux by using Docker. Note that the base image is Ubuntu 16.04, so after LLVM update building Kotlin/Native on Linux will require glibc 2.23 or higher.
This commit is contained in:
@@ -30,6 +30,15 @@ Some examples:
|
||||
means that LLVM will build itself by using distribution from the previous step.
|
||||
* `--stage0` allows using existing LLVM toolchain for bootstrapping.
|
||||
|
||||
### Docker
|
||||
|
||||
You can use Docker to build LLVM for Linux:
|
||||
```shell
|
||||
docker build -t kotlin-llvm-builder .
|
||||
docker run --rm -it -v <HOST_PATH>:/output kotlin-llvm-builder --archive-path /output/llvm-11.1.0-linux-x64
|
||||
|
||||
```
|
||||
|
||||
### Known problems
|
||||
1. Bootstrap build is not working on macOS for default git branch.
|
||||
2. `libcxx` and `compiler-rt` are built as projects, not runtimes.
|
||||
|
||||
Reference in New Issue
Block a user