Skip to content

Commit

Permalink
Get rid of a warning in build script
Browse files Browse the repository at this point in the history
gcc::Config is deprecated in favor of cc::Build
  • Loading branch information
vorner committed Jan 7, 2018
1 parent 3d65b52 commit ab68ff3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sudo: false
language: rust
rust:
- nightly
- 1.9.0
- stable

os:
- linux
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ kernel32-sys = "0.2"
winapi = "0.2"

[build-dependencies]
gcc = "0.3"
cc = "~1"

[features]
nightly = []
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// http://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms.

extern crate gcc;
extern crate cc;

use std::path::PathBuf;
use std::env;
Expand Down Expand Up @@ -65,7 +65,7 @@ fn main() {

let prefixes = ["jump", "make", "ontop"];
let base_path: PathBuf = ["src", "asm"].iter().collect();
let mut config = gcc::Config::new();
let mut config = cc::Build::new();

config.define("BOOST_CONTEXT_EXPORT", None);

Expand Down

0 comments on commit ab68ff3

Please sign in to comment.