Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
BusyJay committed Aug 5, 2019
1 parent baf33ed commit 537f2ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
8 changes: 0 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@ sudo: false
language: rust
git:
submodules: false
cache:
directories:
- $HOME/.cargo
- $HOME/.cache
- $HOME/tools
- $TRAVIS_BUILD_DIR/target
before_cache:
- find $TRAVIS_BUILD_DIR/target/debug -maxdepth 1 -type f -delete

env:
global:
Expand Down
3 changes: 2 additions & 1 deletion grpc-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ fn bindgen_grpc(mut config: bindgen::Builder, file_path: &PathBuf) {
// Other platforms use bindgen to generate the bindings every time.
fn config_binding_path(config: bindgen::Builder) {
let file_path: PathBuf;
println!("cargo:rerun-if-changed=bindings/x86_64-unknown-linux-gnu-bindings.rs");
match env::var("TARGET").unwrap_or("".to_owned()).as_str() {
"x86_64-unknown-linux-gnu" => {
file_path = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap())
Expand All @@ -321,7 +322,7 @@ fn config_binding_path(config: bindgen::Builder) {
fn main() {
println!("cargo:rerun-if-changed=grpc_wrap.cc");
println!("cargo:rerun-if-changed=grpc");
println!("rerun-if-env-changed=UPDATE_BIND");
println!("cargo:rerun-if-env-changed=UPDATE_BIND");

let mut cc = Build::new();
let mut bind_config = bindgen::Builder::default();
Expand Down

0 comments on commit 537f2ef

Please sign in to comment.