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 7575 - wasm32-unknown-emscripten
7676 - x86_64-linux-android
7777 - x86_64-pc-windows-gnu
78- - x86_64-sun -solaris
78+ - x86_64-pc -solaris
7979 - x86_64-unknown-freebsd
8080 - x86_64-unknown-linux-gnu
8181 - x86_64-unknown-linux-musl
Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ terminate.
252252| ` wasm32-unknown-emscripten ` [ 6] | 3.1.14 | 15.0.0 | ✓ | N/A | ✓ |
253253| ` x86_64-linux-android ` [ 1] | 9.0.8 | 9.0.8 | ✓ | 6.1.0 | ✓ |
254254| ` 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 | |
256256| ` x86_64-unknown-freebsd ` | 1.5 | 6.4.0 | ✓ | N/A | |
257257| ` x86_64-unknown-dragonfly ` [ 2] [ 3] | 6.0.1 | 10.3.0 | ✓ | N/A | |
258258| ` 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
1313FROM cross-base as build
1414
1515COPY solaris.sh /
16- RUN /solaris.sh sparcv9
16+ RUN /solaris.sh sparcv9 sun
1717
1818COPY toolchain.cmake /opt/toolchain.cmake
1919
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
88
99main () {
1010 local arch=" ${1} "
11+ local manufacturer=" ${2} "
1112
1213 local binutils=2.28.1 \
1314 gcc=8.4.0 \
14- target=" ${arch} -sun -solaris2.10"
15+ target=" ${arch} -${manufacturer} -solaris2.10"
1516
1617 install_packages bzip2 \
1718 ca-certificates \
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ impl TargetTriple {
160160 "aarch64-unknown-freebsd" => Some ( "freebsd-arm64" ) ,
161161 "x86_64-unknown-netbsd" => Some ( "netbsd-amd64" ) ,
162162 "sparcv9-sun-solaris" => Some ( "solaris-sparc" ) ,
163- "x86_64-sun -solaris" => Some ( "solaris-amd64" ) ,
163+ "x86_64-pc -solaris" => Some ( "solaris-amd64" ) ,
164164 "thumbv6m-none-eabi" => Some ( "arm" ) ,
165165 "thumbv7em-none-eabi" => Some ( "arm" ) ,
166166 "thumbv7em-none-eabihf" => Some ( "armhf" ) ,
Original file line number Diff line number Diff line change @@ -456,7 +456,7 @@ std = true
456456
457457[[target ]]
458458disabled = true # https://github.com/cross-rs/cross/issues/1424
459- target = " x86_64-sun -solaris"
459+ target = " x86_64-pc -solaris"
460460os = " ubuntu-latest"
461461cpp = true
462462dylib = true
You can’t perform that action at this time.
0 commit comments