File tree Expand file tree Collapse file tree 8 files changed +38
-37
lines changed Expand file tree Collapse file tree 8 files changed +38
-37
lines changed Original file line number Diff line number Diff line change 75
75
- wasm32-unknown-emscripten
76
76
- x86_64-linux-android
77
77
- x86_64-pc-windows-gnu
78
- - x86_64-sun -solaris
78
+ - x86_64-pc -solaris
79
79
- x86_64-unknown-freebsd
80
80
- x86_64-unknown-linux-gnu
81
81
- x86_64-unknown-linux-musl
Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ terminate.
252
252
| ` wasm32-unknown-emscripten ` [ 6] | 3.1.14 | 15.0.0 | ✓ | N/A | ✓ |
253
253
| ` x86_64-linux-android ` [ 1] | 9.0.8 | 9.0.8 | ✓ | 6.1.0 | ✓ |
254
254
| ` x86_64-pc-windows-gnu ` | N/A | 9.3 | ✓ | N/A | ✓ |
255
- | ` x86_64-sun -solaris ` | 1.22.7 | 8.4.0 | ✓ | N/A | |
255
+ | ` x86_64-pc -solaris ` | 1.22.7 | 8.4.0 | ✓ | N/A | |
256
256
| ` x86_64-unknown-freebsd ` | 1.5 | 6.4.0 | ✓ | N/A | |
257
257
| ` x86_64-unknown-dragonfly ` [ 2] [ 3] | 6.0.1 | 10.3.0 | ✓ | N/A | |
258
258
| ` x86_64-unknown-illumos ` | 1.20.4 | 8.4.0 | ✓ | N/A | |
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ RUN /xargo.sh
13
13
FROM cross-base as build
14
14
15
15
COPY solaris.sh /
16
- RUN /solaris.sh sparcv9
16
+ RUN /solaris.sh sparcv9 sun
17
17
18
18
COPY toolchain.cmake /opt/toolchain.cmake
19
19
Original file line number Diff line number Diff line change
1
+ FROM ubuntu:20.04 as cross-base
2
+ ENV DEBIAN_FRONTEND=noninteractive
3
+
4
+ COPY common.sh lib.sh /
5
+ RUN /common.sh
6
+
7
+ COPY cmake.sh /
8
+ RUN /cmake.sh
9
+
10
+ COPY xargo.sh /
11
+ RUN /xargo.sh
12
+
13
+ FROM cross-base as build
14
+
15
+ COPY solaris.sh /
16
+ RUN /solaris.sh x86_64 pc
17
+
18
+ COPY toolchain.cmake /opt/toolchain.cmake
19
+
20
+ ENV CROSS_TOOLCHAIN_PREFIX=x86_64-pc-solaris2.10-
21
+ ENV CROSS_SYSROOT=/usr/local/x86_64-pc-solaris2.10
22
+ ENV CARGO_TARGET_X86_64_PC_SOLARIS_LINKER="$CROSS_TOOLCHAIN_PREFIX"gcc \
23
+ AR_x86_64_pc_solaris="$CROSS_TOOLCHAIN_PREFIX"ar \
24
+ CC_x86_64_pc_solaris="$CROSS_TOOLCHAIN_PREFIX"gcc \
25
+ CXX_x86_64_pc_solaris="$CROSS_TOOLCHAIN_PREFIX"g++ \
26
+ CMAKE_TOOLCHAIN_FILE_x86_64_pc_solaris=/opt/toolchain.cmake \
27
+ BINDGEN_EXTRA_CLANG_ARGS_x86_64_pc_solaris="--sysroot=$CROSS_SYSROOT" \
28
+ CROSS_CMAKE_SYSTEM_NAME=SunOS \
29
+ CROSS_CMAKE_SYSTEM_PROCESSOR=x86_64 \
30
+ CROSS_CMAKE_CRT=solaris \
31
+ CROSS_CMAKE_OBJECT_FLAGS="-ffunction-sections -fdata-sections -fPIC -m64"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -8,10 +8,11 @@ set -euo pipefail
8
8
9
9
main () {
10
10
local arch=" ${1} "
11
+ local manufacturer=" ${2} "
11
12
12
13
local binutils=2.28.1 \
13
14
gcc=8.4.0 \
14
- target=" ${arch} -sun -solaris2.10"
15
+ target=" ${arch} -${manufacturer} -solaris2.10"
15
16
16
17
install_packages bzip2 \
17
18
ca-certificates \
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ impl TargetTriple {
160
160
"aarch64-unknown-freebsd" => Some ( "freebsd-arm64" ) ,
161
161
"x86_64-unknown-netbsd" => Some ( "netbsd-amd64" ) ,
162
162
"sparcv9-sun-solaris" => Some ( "solaris-sparc" ) ,
163
- "x86_64-sun -solaris" => Some ( "solaris-amd64" ) ,
163
+ "x86_64-pc -solaris" => Some ( "solaris-amd64" ) ,
164
164
"thumbv6m-none-eabi" => Some ( "arm" ) ,
165
165
"thumbv7em-none-eabi" => Some ( "arm" ) ,
166
166
"thumbv7em-none-eabihf" => Some ( "armhf" ) ,
Original file line number Diff line number Diff line change @@ -456,7 +456,7 @@ std = true
456
456
457
457
[[target ]]
458
458
disabled = true # https://github.com/cross-rs/cross/issues/1424
459
- target = " x86_64-sun -solaris"
459
+ target = " x86_64-pc -solaris"
460
460
os = " ubuntu-latest"
461
461
cpp = true
462
462
dylib = true
You can’t perform that action at this time.
0 commit comments