-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #1424. Adapted from rust-lang/rust#108951 and rust-lang/rust#81229 (with some minor changes to satisfy ShellCheck and account for broken symlinks). This PR also renames `x86_64-sun-solaris` to `x86_64-pc-solaris`, as the former was [deprecated](rust-lang/rust#82216) in Rust 1.52.0 and [removed](rust-lang/rust#118091) in Rust 1.76.0, making this a breaking change.
- Loading branch information
Showing
10 changed files
with
67 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"description": "Fix `*-solaris` targets", | ||
"issues": [1424], | ||
"type": "fixed", | ||
"breaking": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM ubuntu:20.04 as cross-base | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
COPY common.sh lib.sh / | ||
RUN /common.sh | ||
|
||
COPY cmake.sh / | ||
RUN /cmake.sh | ||
|
||
COPY xargo.sh / | ||
RUN /xargo.sh | ||
|
||
FROM cross-base as build | ||
|
||
COPY solaris.sh / | ||
RUN /solaris.sh x86_64 pc | ||
|
||
COPY toolchain.cmake /opt/toolchain.cmake | ||
|
||
ENV CROSS_TOOLCHAIN_PREFIX=x86_64-pc-solaris2.10- | ||
ENV CROSS_SYSROOT=/usr/local/x86_64-pc-solaris2.10 | ||
ENV CARGO_TARGET_X86_64_PC_SOLARIS_LINKER="$CROSS_TOOLCHAIN_PREFIX"gcc \ | ||
AR_x86_64_pc_solaris="$CROSS_TOOLCHAIN_PREFIX"ar \ | ||
CC_x86_64_pc_solaris="$CROSS_TOOLCHAIN_PREFIX"gcc \ | ||
CXX_x86_64_pc_solaris="$CROSS_TOOLCHAIN_PREFIX"g++ \ | ||
CMAKE_TOOLCHAIN_FILE_x86_64_pc_solaris=/opt/toolchain.cmake \ | ||
BINDGEN_EXTRA_CLANG_ARGS_x86_64_pc_solaris="--sysroot=$CROSS_SYSROOT" \ | ||
CROSS_CMAKE_SYSTEM_NAME=SunOS \ | ||
CROSS_CMAKE_SYSTEM_PROCESSOR=x86_64 \ | ||
CROSS_CMAKE_CRT=solaris \ | ||
CROSS_CMAKE_OBJECT_FLAGS="-ffunction-sections -fdata-sections -fPIC -m64" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters