Skip to content

Commit

Permalink
Fix detection of -Z assume-incomplete-release
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jan 3, 2022
1 parent ab8ce63 commit 6da0528
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com

## [Unreleased]

- Fix detection of `-Z assume-incomplete-release` in recent nightly compilers.

## [0.4.8] - 2021-05-19

- [Fix parsing of macro metavariable in attribute arguments.](https://github.com/taiki-e/const_fn/pull/37)
Expand Down Expand Up @@ -120,7 +122,7 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com

## [0.1.4] - 2019-02-15

**Note: This release has been yanked.**
**NOTE:** This release has been yanked.

- Reduce compilation time

Expand Down
5 changes: 3 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ fn assume_incomplete_release() -> bool {
//
// -Zassume-incomplete-release

if let Some(rustflags) = env::var_os("RUSTFLAGS") {
for mut flag in rustflags.to_string_lossy().split(' ') {
// https://github.com/rust-lang/cargo/issues/10111
if let Some(rustflags) = env::var_os("CARGO_ENCODED_RUSTFLAGS") {
for mut flag in rustflags.to_string_lossy().split('\x1f') {
if flag.starts_with("-Z") {
flag = &flag["-Z".len()..];
}
Expand Down

0 comments on commit 6da0528

Please sign in to comment.