diff options
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 | } |
