diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-11-12 16:28:26 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-11-12 16:28:26 +0100 |
| commit | baeb59b5b8d63ef9bb6ecada518ea8b911d2dc30 (patch) | |
| tree | a27e2f99887c06f0c2279d385acbdebbe704a5c8 /embassy-executor/build.rs | |
| parent | c66f83db702e95e010b944cdf1b0f4a9dfe771df (diff) | |
executor: use WakerHack unconditionally even if `nightly` feature is enabled. (#3528)
This ensures the executor compiles with all recent nightly versions,
including the stable-but-with-nightly-features-enabled xtensa rustc.
Diffstat (limited to 'embassy-executor/build.rs')
| -rw-r--r-- | embassy-executor/build.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/embassy-executor/build.rs b/embassy-executor/build.rs index c4c86e1e2..8a41d7503 100644 --- a/embassy-executor/build.rs +++ b/embassy-executor/build.rs | |||
| @@ -96,15 +96,4 @@ fn main() { | |||
| 96 | 96 | ||
| 97 | let mut rustc_cfgs = common::CfgSet::new(); | 97 | let mut rustc_cfgs = common::CfgSet::new(); |
| 98 | common::set_target_cfgs(&mut rustc_cfgs); | 98 | common::set_target_cfgs(&mut rustc_cfgs); |
| 99 | |||
| 100 | // Waker API changed on 2024-09-06 | ||
| 101 | rustc_cfgs.declare("at_least_2024_09_06"); | ||
| 102 | let Some(compiler) = common::compiler_info() else { | ||
| 103 | return; | ||
| 104 | }; | ||
| 105 | if compiler.channel == rustc_version::Channel::Nightly | ||
| 106 | && compiler.commit_date.map(|d| d >= "2024-09-06").unwrap_or(false) | ||
| 107 | { | ||
| 108 | rustc_cfgs.enable("at_least_2024_09_06"); | ||
| 109 | } | ||
| 110 | } | 99 | } |
