@@ -45,7 +45,7 @@ Below are the default toolchains included in the Docker image.
45
45
docker run --rm \
46
46
--volume " ${PWD} /sample" :/root/src \
47
47
--workdir /root/src \
48
- joseluisq/rust-linux-darwin-builder:1.71.1 \
48
+ joseluisq/rust-linux-darwin-builder:1.72.0 \
49
49
sh -c " cargo build --release --target x86_64-unknown-linux-musl"
50
50
```
51
51
@@ -55,7 +55,7 @@ docker run --rm \
55
55
docker run --rm \
56
56
--volume " ${PWD} /sample" :/root/src \
57
57
--workdir /root/src \
58
- joseluisq/rust-linux-darwin-builder:1.71.1 \
58
+ joseluisq/rust-linux-darwin-builder:1.72.0 \
59
59
sh -c " cargo build --release --target x86_64-unknown-linux-gnu"
60
60
```
61
61
@@ -65,7 +65,7 @@ docker run --rm \
65
65
docker run --rm \
66
66
--volume " ${PWD} /sample" :/root/src \
67
67
--workdir /root/src \
68
- joseluisq/rust-linux-darwin-builder:1.71.1 \
68
+ joseluisq/rust-linux-darwin-builder:1.72.0 \
69
69
sh -c " cargo build --release --target x86_64-apple-darwin"
70
70
```
71
71
@@ -77,7 +77,7 @@ docker run --rm \
77
77
docker run --rm \
78
78
--volume " ${PWD} /sample" :/root/src \
79
79
--workdir /root/src \
80
- joseluisq/rust-linux-darwin-builder:1.71.1 \
80
+ joseluisq/rust-linux-darwin-builder:1.72.0 \
81
81
sh -c " cargo build --release --target aarch64-unknown-linux-gnu"
82
82
```
83
83
@@ -87,7 +87,7 @@ docker run --rm \
87
87
docker run --rm \
88
88
--volume " ${PWD} /sample" :/root/src \
89
89
--workdir /root/src \
90
- joseluisq/rust-linux-darwin-builder:1.71.1 \
90
+ joseluisq/rust-linux-darwin-builder:1.72.0 \
91
91
sh -c " cargo build --release --target aarch64-unknown-linux-musl"
92
92
```
93
93
@@ -97,7 +97,7 @@ docker run --rm \
97
97
docker run --rm \
98
98
--volume " ${PWD} /sample" :/root/src \
99
99
--workdir /root/src \
100
- joseluisq/rust-linux-darwin-builder:1.71.1 \
100
+ joseluisq/rust-linux-darwin-builder:1.72.0 \
101
101
sh -c " cargo build --release --target aarch64-apple-darwin"
102
102
```
103
103
@@ -110,7 +110,7 @@ It's known that the [`CARGO_HOME`](https://doc.rust-lang.org/cargo/guide/cargo-h
110
110
You can also use the image as a base for your Dockerfile:
111
111
112
112
``` Dockerfile
113
- FROM joseluisq/rust-linux-darwin-builder:1.71.1
113
+ FROM joseluisq/rust-linux-darwin-builder:1.72.0
114
114
```
115
115
116
116
### OSXCross
@@ -127,14 +127,14 @@ Examples:
127
127
``` sh
128
128
Example usage:
129
129
130
- Example 1: CC=o32-clang ./configure --host=i386-apple-darwin22.2
131
- Example 2: CC=i386-apple-darwin22.2 -clang ./configure --host=i386-apple-darwin22.2
130
+ Example 1: CC=o32-clang ./configure --host=i386-apple-darwin22.4
131
+ Example 2: CC=i386-apple-darwin22.4 -clang ./configure --host=i386-apple-darwin22.4
132
132
Example 3: o64-clang -Wall test.c -o test
133
- Example 4: x86_64-apple-darwin22.2 -strip -x test
133
+ Example 4: x86_64-apple-darwin22.4 -strip -x test
134
134
135
- !!! Use aarch64-apple-darwin22.2 -* instead of arm64-* when dealing with Automake !!!
136
- !!! CC=aarch64-apple-darwin22.2 -clang ./configure --host=aarch64-apple-darwin22.2 !!!
137
- !!! CC=" aarch64-apple-darwin22.2 -clang -arch arm64e" ./configure --host=aarch64-apple-darwin22.2 !!!
135
+ !!! Use aarch64-apple-darwin22.4 -* instead of arm64-* when dealing with Automake !!!
136
+ !!! CC=aarch64-apple-darwin22.4 -clang ./configure --host=aarch64-apple-darwin22.4 !!!
137
+ !!! CC=" aarch64-apple-darwin22.4 -clang -arch arm64e" ./configure --host=aarch64-apple-darwin22.4 !!!
138
138
```
139
139
140
140
### Cross-compilation example
@@ -153,7 +153,7 @@ compile:
153
153
@docker run --rm -it \
154
154
-v $( PWD) :/drone/src \
155
155
-w /drone/src \
156
- joseluisq/rust-linux-darwin-builder:1.71.1 \
156
+ joseluisq/rust-linux-darwin-builder:1.72.0 \
157
157
make cross-compile
158
158
.PHONY: compile
159
159
@@ -178,12 +178,12 @@ Just run the makefile `compile` target, then you will see two release binaries `
178
178
make compile
179
179
# 1. Cross compiling example...
180
180
181
- # rustc 1.71.1 (eb26296b5 2023-08-03 )
181
+ # rustc 1.72.0 (5680fa18f 2023-08-23 )
182
182
# binary: rustc
183
- # commit-hash: eb26296b556cef10fb713a38f3d16b9886080f26
184
- # commit-date: 2023-08-03
183
+ # commit-hash: 5680fa18feaa87f3ff04063800aec256c3d4b4be
184
+ # commit-date: 2023-08-23
185
185
# host: aarch64-unknown-linux-gnu
186
- # release: 1.71.1
186
+ # release: 1.72.0
187
187
# LLVM version: 16.0.5
188
188
189
189
# 2. Compiling application (linux-musl x86_64)...
@@ -211,6 +211,8 @@ For example to cross-compile to Macos:
211
211
CC=o64-clang \
212
212
CXX=o64-clang++ \
213
213
cargo build --target x86_64-apple-darwin
214
+ # Or
215
+ cargo build --target aarch64-apple-darwin
214
216
```
215
217
216
218
### OpenSSL release advice
0 commit comments