Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #65 from japaric/nightly
Browse files Browse the repository at this point in the history
support the newest nightly
  • Loading branch information
japaric authored Apr 8, 2018
2 parents 40cd3ba + 996b192 commit 032ca2a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [v0.3.15] - 2018-04-08

### Fixed

- Support the newest nightly

## [v0.3.14] - 2018-04-01

### Fixed
Expand Down Expand Up @@ -238,7 +244,8 @@ section size addr

Initial release

[Unreleased]: https://github.com/japaric/cortex-m-rt/compare/v0.3.14...HEAD
[Unreleased]: https://github.com/japaric/cortex-m-rt/compare/v0.3.15...HEAD
[v0.3.15]: https://github.com/japaric/cortex-m-rt/compare/v0.3.14...v0.3.15
[v0.3.14]: https://github.com/japaric/cortex-m-rt/compare/v0.3.13...v0.3.14
[v0.3.13]: https://github.com/japaric/cortex-m-rt/compare/v0.3.12...v0.3.13
[v0.3.12]: https://github.com/japaric/cortex-m-rt/compare/v0.3.11...v0.3.12
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ keywords = ["arm", "cortex-m", "runtime", "startup"]
license = "MIT OR Apache-2.0"
name = "cortex-m-rt"
repository = "https://github.com/japaric/cortex-m-rt"
version = "0.3.14"
version = "0.3.15"

[dependencies]
cortex-m = "0.3.0"
Expand Down
10 changes: 8 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,19 @@ use chrono::NaiveDate;

fn main() {
let meta = rustc_version::version_meta().unwrap();
let commit_date = meta.commit_date.unwrap().parse::<NaiveDate>().unwrap();
if meta.channel == rustc_version::Channel::Dev
|| meta.commit_date.unwrap().parse::<NaiveDate>().unwrap()
> NaiveDate::from_ymd(2017, 12, 26)
|| commit_date > NaiveDate::from_ymd(2017, 12, 26)
{
println!("cargo:rustc-cfg=has_termination_lang")
}

// newest nightlies don't need 'extern crate compiler_builtins'
if commit_date < NaiveDate::from_ymd(2018, 04, 07)
{
println!("cargo:rustc-cfg=needs_cb")
}

let target = env::var("TARGET").unwrap();

has_fpu(&target);
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -485,14 +485,15 @@
#![deny(missing_docs)]
#![deny(warnings)]
#![feature(asm)]
#![feature(compiler_builtins_lib)]
#![cfg_attr(needs_cb, feature(compiler_builtins_lib))]
#![feature(global_asm)]
#![feature(lang_items)]
#![feature(linkage)]
#![feature(naked_functions)]
#![feature(used)]
#![no_std]

#[cfg(needs_cb)]
extern crate compiler_builtins;
#[cfg(target_arch = "arm")]
extern crate cortex_m;
Expand Down

0 comments on commit 032ca2a

Please sign in to comment.