forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
172 additions
and
55 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
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,6 @@ | ||
use crate::spec::Target; | ||
use crate::spec::base::sbf_base; | ||
|
||
pub fn target() -> Target { | ||
sbf_base::sbf_target("v0") | ||
} |
6 changes: 6 additions & 0 deletions
6
compiler/rustc_target/src/spec/targets/sbpfv1_solana_solana.rs
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 @@ | ||
use crate::spec::Target; | ||
use crate::spec::base::sbf_base; | ||
|
||
pub fn target() -> Target { | ||
sbf_base::sbf_target("v1") | ||
} |
6 changes: 6 additions & 0 deletions
6
compiler/rustc_target/src/spec/targets/sbpfv2_solana_solana.rs
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 @@ | ||
use crate::spec::Target; | ||
use crate::spec::base::sbf_base; | ||
|
||
pub fn target() -> Target { | ||
sbf_base::sbf_target("v2") | ||
} |
6 changes: 6 additions & 0 deletions
6
compiler/rustc_target/src/spec/targets/sbpfv3_solana_solana.rs
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 @@ | ||
use crate::spec::Target; | ||
use crate::spec::base::sbf_base; | ||
|
||
pub fn target() -> Target { | ||
sbf_base::sbf_target("v3") | ||
} |
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
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,44 @@ | ||
FROM ubuntu:22.04 | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | ||
g++ \ | ||
make \ | ||
ninja-build \ | ||
file \ | ||
curl \ | ||
ca-certificates \ | ||
python3 \ | ||
git \ | ||
cmake \ | ||
sudo \ | ||
gdb \ | ||
libssl-dev \ | ||
pkg-config \ | ||
xz-utils | ||
|
||
ENV RUSTUP_INIT_SKIP_PATH_CHECK="yes" | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
|
||
RUN PATH="${HOME}/.cargo/bin:${PATH}" \ | ||
cargo install --git https://github.com/anza-xyz/cargo-run-solana-tests.git \ | ||
--rev c5df324a62a5e03d2ff5f9efbdbf5a4e4182325e \ | ||
--bin cargo-run-solana-tests --root /usr/local | ||
|
||
COPY scripts/sccache.sh /scripts/ | ||
RUN sh /scripts/sccache.sh | ||
|
||
# We are disabling CI LLVM since this builder is intentionally using a host | ||
# LLVM, rather than the typical src/llvm-project LLVM. | ||
ENV NO_DOWNLOAD_CI_LLVM 1 | ||
|
||
ENV RUST_CONFIGURE_ARGS \ | ||
--set rust.lld \ | ||
--set llvm.clang | ||
|
||
ENV SCRIPT CARGO_TARGET_SBPFV3_SOLANA_SOLANA_RUNNER=\"cargo-run-solana-tests --heap-size 104857600\" \ | ||
LLVM_HOME=/checkout/obj/build/x86_64-unknown-linux-gnu/llvm \ | ||
PATH="${HOME}/.cargo/bin:${PATH}" \ | ||
python3 /checkout/x.py --stage 1 test --host='' --target sbpfv3-solana-solana \ | ||
library/core |
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
Oops, something went wrong.