Browse Source

Update to new compiler flag syntax

Bump to 0.1.5
add-rc-path 0.1.5
Alex Crichton 10 years ago
parent
commit
f003d9af63
  1. 2
      Cargo.toml
  2. 2
      src/lib.rs

2
Cargo.toml

@ -1,7 +1,7 @@
[package]
name = "gcc"
version = "0.1.4"
version = "0.1.5"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
license = "MIT/Apache-2.0"
repository = "https://github.com/alexcrichton/gcc-rs"

2
src/lib.rs

@ -111,7 +111,7 @@ pub fn compile_library(output: &str, config: &Config, files: &[&str]) {
.arg(dst.join(output))
.args(objects.as_slice())
.args(config.objects.as_slice()));
println!("cargo:rustc-flags=-L native={} -l {}:static",
println!("cargo:rustc-flags=-L native={} -l static={}",
dst.display(), output.slice(3, output.len() - 2));
}

Loading…
Cancel
Save