Skip to content

Commit 5feb8e6

Browse files
bors[bot]taiki-ekanavinglittershark
authored
Merge #929
929: v0.8: Prepare for the next release r=taiki-e a=taiki-e Backports #922 and #926. Changes: - crossbeam-utils 0.8.12 -> 0.8.13 - Update `memoffset` to 0.7. (#926) - Improve support for custom targets. (#922) - crossbeam-queue 0.3.6 -> 0.3.7 - Improve support for custom targets. (#922) - crossbeam-epoch 0.9.11 -> 0.9.12 - Improve support for custom targets. (#922) Closes #928 Co-authored-by: Taiki Endo <[email protected]> Co-authored-by: Alexander Kanavin <[email protected]> Co-authored-by: Griffin Smith <[email protected]>
2 parents 71dd4ca + 09c99c0 commit 5feb8e6

File tree

16 files changed

+44
-8
lines changed

16 files changed

+44
-8
lines changed

build-common.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// The target triplets have the form of 'arch-vendor-system'.
2+
//
3+
// When building for Linux (e.g. the 'system' part is
4+
// 'linux-something'), replace the vendor with 'unknown'
5+
// so that mapping to rust standard targets happens correctly.
6+
fn convert_custom_linux_target(target: String) -> String {
7+
let mut parts: Vec<&str> = target.split('-').collect();
8+
let system = parts[2];
9+
if system == "linux" {
10+
parts[1] = "unknown";
11+
};
12+
parts.join("-")
13+
}

crossbeam-epoch/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Version 0.9.12
2+
3+
- Update `memoffset` to 0.7. (#926)
4+
- Improve support for custom targets. (#922)
5+
16
# Version 0.9.11
27

38
- Removes the dependency on the `once_cell` crate to restore the MSRV. (#913)

crossbeam-epoch/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name = "crossbeam-epoch"
44
# - Update CHANGELOG.md
55
# - Update README.md
66
# - Create "crossbeam-epoch-X.Y.Z" git tag
7-
version = "0.9.11"
7+
version = "0.9.12"
88
edition = "2018"
99
rust-version = "1.38"
1010
license = "MIT OR Apache-2.0"
@@ -47,7 +47,7 @@ autocfg = "1"
4747

4848
[dependencies]
4949
cfg-if = "1"
50-
memoffset = "0.6"
50+
memoffset = "0.7"
5151
scopeguard = { version = "1.1", default-features = false }
5252

5353
# Enable the use of loom for concurrency testing.

crossbeam-epoch/build-common.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../build-common.rs

crossbeam-epoch/build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
use std::env;
1616

1717
include!("no_atomic.rs");
18+
include!("build-common.rs");
1819

1920
fn main() {
2021
let target = match env::var("TARGET") {
21-
Ok(target) => target,
22+
Ok(target) => convert_custom_linux_target(target),
2223
Err(e) => {
2324
println!(
2425
"cargo:warning={}: unable to get TARGET environment variable: {}",

crossbeam-queue/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Version 0.3.7
2+
3+
- Improve support for custom targets. (#922)
4+
15
# Version 0.3.6
26

37
- Bump the minimum supported Rust version to 1.38. (#877)

crossbeam-queue/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name = "crossbeam-queue"
44
# - Update CHANGELOG.md
55
# - Update README.md
66
# - Create "crossbeam-queue-X.Y.Z" git tag
7-
version = "0.3.6"
7+
version = "0.3.7"
88
edition = "2018"
99
rust-version = "1.38"
1010
license = "MIT OR Apache-2.0"

crossbeam-queue/build-common.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../build-common.rs

crossbeam-queue/build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
use std::env;
1616

1717
include!("no_atomic.rs");
18+
include!("build-common.rs");
1819

1920
fn main() {
2021
let target = match env::var("TARGET") {
21-
Ok(target) => target,
22+
Ok(target) => convert_custom_linux_target(target),
2223
Err(e) => {
2324
println!(
2425
"cargo:warning={}: unable to get TARGET environment variable: {}",

crossbeam-skiplist/build-common.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../build-common.rs

0 commit comments

Comments
 (0)