forked from cross-rs/cross
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
7d75864
commit 60017d6
Showing
8 changed files
with
38 additions
and
37 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
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