Skip to content

Commit 60017d6

Browse files
committed
Rename x86_64-sun-solaris to x86_64-pc-solaris
The `x86_64-sun-solaris` target was deprecated in Rust 1.52.0[1] and removed in Rust 1.76.0[2], in favour of `x86_64-pc-solaris`. [1]: rust-lang/rust#82216 [2]: rust-lang/rust#118091
1 parent 7d75864 commit 60017d6

File tree

8 files changed

+38
-37
lines changed

8 files changed

+38
-37
lines changed

.github/ISSUE_TEMPLATE/b_issue_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ body:
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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 | |

docker/Dockerfile.sparcv9-sun-solaris

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN /xargo.sh
1313
FROM cross-base as build
1414

1515
COPY solaris.sh /
16-
RUN /solaris.sh sparcv9
16+
RUN /solaris.sh sparcv9 sun
1717

1818
COPY toolchain.cmake /opt/toolchain.cmake
1919

docker/Dockerfile.x86_64-pc-solaris

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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"

docker/Dockerfile.x86_64-sun-solaris

Lines changed: 0 additions & 31 deletions
This file was deleted.

docker/solaris.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ set -euo pipefail
88

99
main() {
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 \

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"),

targets.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ std = true
456456

457457
[[target]]
458458
disabled = true # https://github.com/cross-rs/cross/issues/1424
459-
target = "x86_64-sun-solaris"
459+
target = "x86_64-pc-solaris"
460460
os = "ubuntu-latest"
461461
cpp = true
462462
dylib = true

0 commit comments

Comments
 (0)