Commit 455cad5a authored by Fabio Utzig's avatar Fabio Utzig Committed by Fabio Utzig
Browse files

Move from gcc to cc crate

gcc create has become deprecated: https://crates.io/crates/gcc

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent e35ed567
Loading
Loading
Loading
Loading
+4 −5
Changes for sim/Cargo.lock: 4 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ name = "backtrace-sys"
version = "0.1.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
 "cc 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
 "cc 1.0.25 (registry+https://github.com/rust-lang/crates.io-index)",
 "libc 0.2.34 (registry+https://github.com/rust-lang/crates.io-index)",
]

@@ -99,7 +99,6 @@ dependencies = [
 "base64 0.9.2 (registry+https://github.com/rust-lang/crates.io-index)",
 "docopt 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)",
 "env_logger 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
 "gcc 0.3.54 (registry+https://github.com/rust-lang/crates.io-index)",
 "libc 0.2.34 (registry+https://github.com/rust-lang/crates.io-index)",
 "log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
 "mcuboot-sys 0.1.0",
@@ -124,7 +123,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"

[[package]]
name = "cc"
version = "1.0.3"
version = "1.0.25"
source = "registry+https://github.com/rust-lang/crates.io-index"

[[package]]
@@ -263,7 +262,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
name = "mcuboot-sys"
version = "0.1.0"
dependencies = [
 "gcc 0.3.54 (registry+https://github.com/rust-lang/crates.io-index)",
 "cc 1.0.25 (registry+https://github.com/rust-lang/crates.io-index)",
 "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
 "libc 0.2.34 (registry+https://github.com/rust-lang/crates.io-index)",
 "log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -509,7 +508,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum block-cipher-trait 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "370424437b9459f3dfd68428ed9376ddfe03d8b70ede29cc533b3557df186ab4"
"checksum byte-tools 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "560c32574a12a89ecd91f5e742165893f86e3ab98d21f8ea548658eb9eef5f40"
"checksum byteorder 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "652805b7e73fada9d85e9a6682a4abd490cb52d96aeecc12e33a0de34dfd0d23"
"checksum cc 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "a9b13a57efd6b30ecd6598ebdb302cca617930b5470647570468a65d12ef9719"
"checksum cc 1.0.25 (registry+https://github.com/rust-lang/crates.io-index)" = "f159dfd43363c4d08055a07703eb7a3406b0dac4d0584d96965a3262db3c9d16"
"checksum cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d4c819a1287eb618df47cc647173c5c4c66ba19d888a6e50d605672aed3140de"
"checksum coco 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "c06169f5beb7e31c7c67ebf5540b8b472d23e3eade3b2ec7d1f5b504a85f91bd"
"checksum ctr 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "50ac3add446ec1f8fe3dc007cd838f5b22bbf33186394feac505451ecc43c018"
−3
Changes for sim/Cargo.toml: 0 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -13,9 +13,6 @@ validate-slot0 = ["mcuboot-sys/validate-slot0"]
enc-rsa = ["mcuboot-sys/enc-rsa"]
enc-kw = ["mcuboot-sys/enc-kw"]

[build-dependencies]
gcc = "0.3.54"

[dependencies]
libc = "0.2.0"
rand = "0.3.0"
+1 −1
Changes for sim/mcuboot-sys/Cargo.toml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ enc-rsa = []
enc-kw = []

[build-dependencies]
gcc = "0.3.54"
cc = "1.0.25"

[dependencies]
lazy_static = "1.0"
+2 −2
Changes for sim/mcuboot-sys/build.rs: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
// Build mcuboot as a library, based on the requested features.

extern crate gcc;
extern crate cc;

use std::env;
use std::fs;
@@ -16,7 +16,7 @@ fn main() {
    let enc_rsa = env::var("CARGO_FEATURE_ENC_RSA").is_ok();
    let enc_kw = env::var("CARGO_FEATURE_ENC_KW").is_ok();

    let mut conf = gcc::Build::new();
    let mut conf = cc::Build::new();
    conf.define("__BOOTSIM__", None);
    conf.define("MCUBOOT_USE_FLASH_AREA_GET_SECTORS", None);
    conf.define("MCUBOOT_HAVE_ASSERT_H", None);