1
- # WIP Multiarch Cross Compiling Toolchain
1
+ # Multiarch Cross Compiling Toolchain
2
2
3
3
### Containerized Builds
4
4
This project declares a c++ toolchain suite with cross compilers for targeting four platforms:
@@ -11,15 +11,15 @@ The toolchain suite describes cross compilers defined in a docker container desc
11
11
12
12
13
13
### Using Published Docker Container for Cross Compilation Targets:
14
- This is still a WIP, at the time of this writing linux_amd64, linux_arm64, and osx_amd64 are working targets.
14
+ At the time of this writing linux_amd64, linux_arm64, osx_amd64, and windows_amd64 are working targets.
15
15
16
16
#### If your host machine is linux_amd64
17
17
If you are on linux_amd64 and you have docker configured, you can simply use bazel with the docker target configs. See the table below
18
18
19
19
#### Otherwise run the cross compiler image
20
20
1 . checkout prysm, ` git clone https://github.com/prysmaticlabs/prysm `
21
21
2 . cd prysm
22
- 3 . ` docker run -it -v $(pwd):/workdir suburbandad/cross-clang-10 :latest `
22
+ 3 . ` docker run -it -v $(pwd):/workdir suburbandad/prysm-cross :latest `
23
23
24
24
From here you can run builds inside the linux x86_64 container image, e.g.:
25
25
@@ -28,18 +28,14 @@ From here you can run builds inside the linux x86_64 container image, e.g.:
28
28
| arm64 | linux | linux_arm64 | Y | ` bazel build --config=linux_arm64_docker //beacon-chain ` |
29
29
| x86_64 | linux | linux_amd64 | Y | ` bazel build --config=linux_amd64_docker //beacon-chain ` |
30
30
| x86_64 | osx | osx_amd64 | Y | ` bazel build --config=osx_amd64_docker //beacon-chain ` |
31
- | x86_64 | windows | windows_amd64 | N | ` bazel build --config=windows_amd64_docker //beacon-chain ` |
31
+ | x86_64 | windows | windows_amd64 | y | ` bazel build --config=windows_amd64_docker //beacon-chain ` |
32
32
33
33
34
34
#### Or, if you just want to run a particular target, this is handy:
35
35
For example, to build the beacon chain for linux_arm64:
36
- ` docker run -it -v $(pwd):/workdir suburbandad/cross-clang-10 :latest bazel build --config=linux_arm64 //beacon-chain `
36
+ ` docker run -it -v $(pwd):/workdir suburbandad/prysm-cross :latest bazel build --config=linux_arm64 //beacon-chain `
37
37
38
38
39
- Also fun, if you are on OSX can build and run a linux_amd64 beacon-chain:
40
- ` docker run -it -v $(pwd):/workdir suburbandad/cross-clang-10:latest bazel run //beacon-chain `
41
-
42
-
43
- ### Coming soon
44
- * Windows x86_64 builds
39
+ Also fun, if you are on OSX or windows, you can build and run a linux_amd64 beacon-chain:
40
+ ` docker run -it -v $(pwd):/workdir suburbandad/prysm-cross:latest bazel run //beacon-chain `
45
41
0 commit comments