From ae54389e17f0f304c8c3498eebbacc61d1e98652 Mon Sep 17 00:00:00 2001 From: Haibo Huang Date: Fri, 18 Dec 2020 02:22:45 -0800 Subject: Upgrade rust/crates/grpcio-sys to 0.7.2 Test: make Change-Id: Ic7521c73aacb4e68054f765ca1a2234e5511ee0e --- build.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'build.rs') diff --git a/build.rs b/build.rs index 34732393..44e14804 100644 --- a/build.rs +++ b/build.rs @@ -75,7 +75,9 @@ fn build_grpc(cc: &mut cc::Build, library: &str) { println!("cargo:rustc-link-lib=framework=CoreFoundation"); } - if env::var("CARGO_CFG_TARGET_ENV").unwrap() == "musl" { + if let Some(val) = get_env("CXX") { + config.define("CMAKE_CXX_COMPILER", val); + } else if env::var("CARGO_CFG_TARGET_ENV").unwrap() == "musl" { config.define("CMAKE_CXX_COMPILER", "g++"); } -- cgit v1.2.3