Skip to content

Commit

Permalink
Change gcc to cc #7
Browse files Browse the repository at this point in the history
  • Loading branch information
h4llow3En committed Jul 5, 2018
1 parent dad202f commit 34565f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ chrono = "0.4.0"
failure = "0.1.1"

[build-dependencies]
gcc = "0.3.45"
cc = "1.0.17"
8 changes: 6 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
extern crate gcc;
extern crate cc;

fn main() {
if cfg!(target_os = "macos") {
gcc::Config::new().file("objc/notify.m").flag("-fmodules").compile("libnotify.a");
cc::Build::new()
.file("objc/notify.m")
.flag("-fmodules")
.warnings(false)
.compile("notify");
}
}

0 comments on commit 34565f0

Please sign in to comment.