Skip to content

Commit

Permalink
Merge pull request #85 from Rust-for-Linux/rust-stack-probes
Browse files Browse the repository at this point in the history
Migrate to the new stack probes option
  • Loading branch information
ojeda authored Feb 11, 2021
2 parents eb188eb + 7fd93ca commit 095daad
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
arch: [x86_64, arm64]
toolchain: [gcc, clang, llvm]
config: [debug, release]
rustc: [2021-01-21]
rustc: [2021-01-24]
output: [src] # [src, build]
install: [rustup] # [rustup, standalone]
sysroot: [common] # [common, custom]
Expand All @@ -27,23 +27,23 @@ jobs:
- arch: x86_64
toolchain: gcc
config: debug
rustc: 2021-01-21
rustc: 2021-01-24
output: build
install: rustup
sysroot: custom

- arch: arm64
toolchain: clang
config: release
rustc: 2021-01-21
rustc: 2021-01-24
output: build
install: standalone
sysroot: common

- arch: x86_64
toolchain: llvm
config: debug
rustc: 2021-01-21
rustc: 2021-01-24
output: build
install: standalone
sysroot: custom
Expand Down
2 changes: 1 addition & 1 deletion Documentation/rust/quick-start.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ rustc
*****

A recent *nightly* Rust toolchain (with, at least, ``rustc``) is required,
e.g. ``nightly-2021-01-21``. Our goal is to use a stable toolchain as soon
e.g. ``nightly-2021-01-24``. Our goal is to use a stable toolchain as soon
as possible, but for the moment we depend on a handful of nightly features.

If you are using ``rustup``, run::
Expand Down
9 changes: 8 additions & 1 deletion arch/arm64/rust/target.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,14 @@
},
"relocation-model": "static",
"relro-level": "full",
"stack-probes": true,
"stack-probes": {
"kind": "inline-or-call",
"min-llvm-version-for-inline": [
11,
0,
1
]
},
"target-c-int-width": "32",
"target-endian": "little",
"target-pointer-width": "64",
Expand Down
9 changes: 8 additions & 1 deletion arch/x86/rust/target.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,14 @@
},
"relocation-model": "static",
"relro-level": "full",
"stack-probes": true,
"stack-probes": {
"kind": "inline-or-call",
"min-llvm-version-for-inline": [
11,
0,
1
]
},
"target-c-int-width": "32",
"target-endian": "little",
"target-pointer-width": "64",
Expand Down

0 comments on commit 095daad

Please sign in to comment.